[Resolved] Removing menus not working in BuddyPress 1.5 – help please;)
-
I’m developing on the trunk version of BP and seem to have hit a bit of a road block when trying to manipulate the BuddyPress menus.
As per https://bpdevel.wordpress.com/2011/08/05/how-bp-1-5-load-order-changes-may-affect-your-plugins-or-themes/ I have tried the following functions wrapped up in a function and hooked upto bp_setup_nav ie:
`
function ja_remove_activity_friends_subnav() {
bp_core_remove_subnav_item( ‘activity’, ‘friends’ );
}
add_action( ‘bp_setup_nav’, ‘ja_remove_activity_friends_subnav’, 15 );
`This is in my bp-custom.php file in plugins. Sadly, it doesn’t seem to do anything;(
I think I may be getting confused between bp_core_remove_nav_item() and bp_core_remove_subnav() – no matter what I try the menu remains unaffected.
I have tried things like `bp_core_remove_nav_item($bp->groups->slug, ‘send-invites’);` inside the function too, but without success.
Am I doing something wrong – I’d hate to hack the core, but it may come to it if I can’t get this working sadly;( Any help would be much appreciated thanks!
You must be logged in to reply to this topic.