Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I get the Displayed Username?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @r-a-y

    Keymaster

    `bp_displayed_user_username()` is what you’re looking for.

    If you’re looking to just return the displayed username, use `bp_get_displayed_user_username()`.

    For more template tags, check out /bp-core/bp-core-templatetags.php.

    @morgue89

    Member

    Hey ray thanks for your reply! I am very new to all of this, I know it is asking a lot but if you could give me an example of the exact code I would need to type in my php widget to get this to work I would be EXTREMELY grateful!

    Here is what I was using for the logged in user, not sure where exactley to put the new alterations for a Displayed user:

    global $current_user;
    $username = $current_user->user_login;

    ‘http://spotskenya.com/spotters//spots/create/’

    @morgue89

    Member

    Got it to work thanks ray!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I get the Displayed Username?’ is closed to new replies.
Skip to toolbar