I searched this with Google and found a code to functions.php
COPY CODE
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="' . bp_loggedin_user_domain( '/' ) . '">' . __('Own profile') . '</a></li>';
$menu = $menu . $profilelink;
return $menu;
}
However, this adds link just fine to end of the menu. I want it to be the first one. How to do this? 🙂