Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: one problem after WP update #9080
     mpitka
    Participant

    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? 🙂

Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?