bp_loggedin_user_domain() – BuddyPress Function Reference

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.

bp_loggedin_user_domain

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.

Returns

String – URL of logged in user along with trailing slash

 

Related Functions:

  • bp_loggedin_user_id()
  • bp_displayed_user_id()