Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Can we remove specific items Item Nav on profile


  • Uprootednut
    Participant

    @uprootednut

    I am looking to remove a couple of the menu items on the profile e.g. friends and notifications.

    Found some old stuff that I tried using but didn’t seem to work any more (from 4 years ago).

    Thanks for your time.

Viewing 2 replies - 1 through 2 (of 2 total)

  • Henry Wright
    Moderator

    @henrywright

    You can use bp_core_remove_nav_item( $parent_id ) to remove items from the navigation array. $parent_id is the slug of the parent navigation item. So, for example:

    function my_nav_item_removal_function() {
        bp_core_remove_nav_item( 'friends' );
    }
    add_action( 'init', 'my_nav_item_removal_function' );

    Uprootednut
    Participant

    @uprootednut

    Awesome, thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Can we remove specific items Item Nav on profile’ is closed to new replies.
Skip to toolbar