Get just the link for the current logged in user


Any one who need to the the link for the current user. eg /member/admin or /member/warwick
Paste this code into the function.php for the theme and call it.


function bp_get_loggedinuser_link() {
 global $bp;
 if ( $link = bp_core_get_userlink( $bp->loggedin_user->id ) ) {
 return apply_filters( 'bp_loggedinuser_link', $link );
 }
 }

Leave a Reply

Your email address will not be published. Required fields are marked *