Step 1: Modify the Business Profile Menu Items
In order to add a custom tab to the business profile page, you’ll need to modify the bp_business_profile_single_menu_items filter. The following code snippet adds a new tab titled “Custom Tab”:
Add this code to your theme’s functions.php file or in your child theme’s functions.php file.
Step 2: Create a Template File for the Custom Tab
Once the tab is added via the menu filter, you need to create a corresponding template file that will render the content of the tab.
File Path:
You need to create a template file in either the parent or child theme at the following path:
- Parent Theme:
parent-theme/bp-business-profile/single/custom-tab.php - Child Theme:
child-theme/bp-business-profile/single/custom-tab.php
Template File Name:
The name of the file should match the slug of the tab you defined in the filter (in this case, 'custom-tab.php').
Sample Template File:
Create a file named custom-tab.php with the following content:

