Reply To: How do you put the "My Profile" link on the menu?
I am still playing with this, and it doesn’t currently work, but it’s something like adding the following to your functions file
// Filter wp_nav_menu() to add profile link
add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
function my_nav_menu_profile_link($menu) {
if (!is_user_logged_in())
return $menu;
else
$profilelink = '<li><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); edit" >Amend Profile</a></li>';
$menu = $menu . $profilelink;
return $menu;
}
Syntax needs sorting
I’m out most of today, but if you or someone else cracks this, then paste the solution here, and it’ll save me repeating the work.
Solution is based on
https://buddypress.org/support/topic/adding-dynamic-profile-link-to-main-menu-item/
which does the business for buddypress.