Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove Sub Nav Items in BuddyPress [Resolved]

  • I have tried a variety of ways using `bp_core_remove_nav_item(){}` to remove the Send Invites menu item in a plug-in and in my theme’s functions.php file and I either get no success in removing certain menu items or I get a Page not found result.

    Does anyone know how to effectively remove sub nav menu items in Buddypress?

    Thanks

    This does not work in my functions.php:
    `function bbg_remove_send_invites_from_group() { bp_core_remove_nav_item( bp_get_current_group_slug(), ‘send-invites’ ); } add_action( ‘bp_setup_nav’, ‘bbg_remove_send_invites_from_group’ );`

    This does not work within a plugin:
    `function bbg_remove_send_invites_from_group() { bp_core_remove_nav_item( bp_get_current_group_slug(), ‘send-invites’ ); } add_action( ‘bp_setup_nav’, ‘bbg_remove_send_invites_from_group’ );`

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove Sub Nav Items in BuddyPress [Resolved]’ is closed to new replies.
Skip to toolbar