• Resolved mimmo99

    (@mimmo99)


    Hi, I would just like to get the user data and put it in an array, to be able to use it later.
    In the profile.php file, here (is it the correct place, right?):

    if ( $menu_enabled || ! empty( $tabs[ $nav ]['hidden'] ) ) { ?>
    
    				<div class="um-profile-body <?php echo esc_attr( $nav . ' ' . $nav . '-' . $subnav ); ?>">
    ...
    ...
    

    can you help me understand how to do it?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @mimmo99

    If you need to get a specific user data, you can try the example code below:

    $user_id = 123
    um_fetch_user( $user_id );
    $user_gender = um_user("gender");  
    

    Please feel free to re-open this thread or create a new one if there’s any question that may come up.

    Regards,

    Thread Starter mimmo99

    (@mimmo99)

    Great! Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get user profile data’ is closed to new replies.