Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Getting User’s Full Name from user_id


techguy
Participant

@crashutah

I found this little function:
$user_test = new BP_Core_User( $referring_user_id );

Has the full name, but you still have to go through all the xprofile fields. Plus, is it ok to call the user info this way? Will it have problems down the line.

Another option is to sync the display_name with the name in the BP profile field, but I’m not sure the best way to do that and that could be problematic if they make changes to the name later.

Anyone else run into this issue?

Skip to toolbar