• There is a way to recover the displayed (requested) User Profile?
    The profile of a user when clicking on the user link (no logged in user)

    Current user is current user, ok

    $user = wp_get_current_user();
    $display_name = $user->display_name;

    I have tried this but it doesn’t seem to work:

    $dup = um_get_requested_user();
    um_fetch_user( $dup );
    $meta_value = get_user_meta( $dup, ‘mymetakey’, true );

    Any suggestions?
    Thanks in advance

    • This topic was modified 4 years, 10 months ago by Lion73.
  • The topic ‘User profile displayed’ is closed to new replies.