1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Set the Send Invites Tab as the Default Group Navigation Tab

How to Set the Send Invites Tab as the Default Group Navigation Tab

Introduction

BuddyBoss does not allow changing the default tab that loads when a group is opened. Groups usually open on the Members or Activity tab. If you want the Send Invites tab to be the default, you can achieve this with a custom function. This guide explains how you can set the Send Invites tab as the default group navigation tab.

Custom Workaround

Before proceeding, make sure you have a complete site backup.

  1. Go to Appearance > Theme File Editor in your WordPress admin dashboard.
  2. Under Select theme to edit, choose your active theme (preferably 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 bbg_set_group_default_extension( $ext ) {
    return 'invite'; // Set the default extension to 'invites'
}
add_filter( 'bp_groups_default_extension', 'bbg_set_group_default_extension' );
  1. Click Update File to save your changes.

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 group still opens on a different tab.
A: Ensure the code is added to the active theme’s functions.php and that no other plugin or custom code is overriding the default group tab.

Q: Can I set another tab as the default instead of Invites?
A: Yes. Replace ‘invite’ with another group tab slug, such as ‘members’, ‘messages’, or ‘forum’.

Q: Does this affect all groups or just new ones?
A: This change affects all groups immediately, including existing ones.

Q: Can I revert this change easily?
A: Yes. 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 developer for custom work.

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.