This question was asked 4 days ago here:
https://buddypress.org/support/topic/how-users-can-link-to-their-profile/
And some other search result you can read also, here:
https://buddypress.org/support/search/bp_get_loggedin_user_link/
Finally, question is: which menu are you talking about ? Give details please.
Thanks for the response danbp,
I have a sidebar menu here ( http://biomaghub.com/community/ ) that I’ve titled “This Menu Item Directly To Profile”. I was hoping there was a way to put in a custom link that would redirect logged in users to their profile page. Non-logged in users won’t have access to that page at all.
Thanks,
Jason
Use a condition.
Function xxxxx() {
if( is_user_logged_in() ) {
echo '<li><a href="'. bp_get_loggedin_user_link() .'">View my profile</a></li>';
}
}