Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Question

    #59448
    @stackstreetnew

    Hello,

    I used a simple function to create a link to the users following activity page (eg /username/activity/following). The function works fine in other buddypress themes, im wondering what the specific conflict is here?

    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 class=”menu-item”>‘ . __(‘My Feed’) . ‘‘;
    $menu = $menu . $profilelink;
    return $menu;
    }

    add_filter( ‘wp_nav_menu_items’, ‘custom_nav_item’, 10, 2 );

    Thanks!

    Answers

    #59449
    @stackstreetnew

    Never mind, i see my syntax error. Thanks!

    #59511
    @vapvarun

    Cool, I will close this one
    Regards
    Varun Dubey

Viewing 3 posts - 1 through 3 (of 3 total)
  • The question ‘Add menu item’ is closed to new replies.