bp_loggedin_user_domain() – BuddyPress Function Reference

Description

bp_loggedin_user_domain() returns the profile URL of currently logged-in user. This function comes in handy while dynamically building up the URLs for currently logged in user.

Usage

The function returns logged in user domain to be used with in php.

echo bp_loggedin_user_domain();

//OR

$user_domain = bp_loggedin_user_domain();


Returns

String – URL of logged in user along with trailing slash

 

Related Functions: