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.
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();
String – URL of logged in user along with trailing slash
Related Functions: