1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Remove the Members Menu in a Group

How to Remove the Members Menu in a Group

Introduction

By default, BuddyBoss does not include a built-in option to remove the Members tab from a group’s navigation menu. If you want to remove the Members menu in a group, you can achieve this by adding a custom function to your theme.

Custom Workaround

  1. Go to Appearance > Theme Editor in your WordPress admin dashboard.
  2. Under Select theme to edit, choose your active theme (preferably a BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, click Theme Functions (functions.php).
  4. Paste the following code just before the closing PHP tag (?>):
function bb_remove_groups_members_menu_item() {

    if ( bp_is_group() ) {

        global $bp;

        bp_core_remove_subnav_item(

            $bp->groups->current_group->slug,

            'members',

            'groups'

        );

    }

}

add_action( 'bp_setup_nav', 'bb_remove_groups_members_menu_item', 10 );
  1. Click Update File to save your changes.

Once saved, the Members tab will no longer appear in the group navigation.

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

Troubleshooting and FAQs

Q: The Members tab is still visible in groups.
A: Ensure the code is added to the active theme’s functions.php file and that you are using the correct (child) theme.

Q: Does this remove the Members tab from all groups?
A: Yes. This snippet removes the Members menu item globally for all groups.

Q: Will this affect group permissions or member access?
A: No. This only hides the navigation tab. Group membership and permissions remain unchanged.

Q: Can I restore the Members tab later?
A: Yes. Simply remove the code from functions.php and save the file.

Q: Who can I contact for further assistance?
A: Please review the BuddyBoss Support Policy or consult a qualified developer for additional customization needs.

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.