
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.
1 2 3 4 5 |
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:
- bp_loggedin_user_id()
- bp_displayed_user_id()