bp_core_remove_nav_item not working
-
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.
-
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?
I can’t find
bp_activity_setup_navin the current codebase. Hooking tobp_initinstead 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.
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.
argggg… my post seems to be not displaying
- You must be logged in to reply to this topic.