Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_core_remove_nav_item not working

  • @ghosted

    Participant

    BuddyPress :3.1

    I really hope someone can help me with this. I’ve read a lot of support pages/articles from varying sources, nothing I put in bp-custom.php works for removing profile nav tabs/sub nav tabs.

    I’ve already tried https://buddypress.org/support/topic/the-right-way-to-remove-nav-items/

    Is it possible to make Activity and Forum profile tabs private?


    which doesn’t seem to have any effect at all.

    the only thing i’ve found that kind does anything is:

    function bp_remove_activity_from_profile()
    {
    bp_core_remove_nav_item('activity');
    }
    add_action('bp_activity_setup_nav','bp_remove_activity_from_profile');

    but it’s not ideal since there are quite a few things i’d like to remove.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @ghosted

    Participant

    fyi just found this, seems to work.
    https://buddypress.org/support/topic/removing-nav-subnav-item-in-profile-page/

    is it the add hook that is messing up the other one?

    @henrywright

    Moderator

    I can’t find bp_activity_setup_nav in the current codebase. Hooking to bp_init instead should work.

    bp_core_remove_nav_item() will delete an item from the primary navigation of the specified component.

    bp_core_remove_subnav_item() will delete an item from the secondary navigation of the specified component.

    Hope this helps.

    @ghosted

    Participant

    Thanks Henry it was the $hook that was incorrect in the previous docs. I was wondering if i could ask you to take a look at another question i posted about notifications? I’m not sure if you’ll have an answer but i’ve not managed to get anywhere on it.

    how do i get mentions recognized for notifications here?

    @grosfaignan

    Participant

    argggg… my post seems to be not displaying

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar