How to create custom setting tab

Add the below code inside the code snippet plugin or child theme’s functions.php file.

add_filter( 'bp_business_profile_single_settings_tabs', 'custom_settings_tabs');
function custom_settings_tabs( $settings_tabs ) {

/*
Create a custom-settings.php file in the child theme. The file name will be generated using the setting tab slug base.
The file location is as below:
/theme-child-theme name/bp-business-profile/single/settings/custom-settings.php

*/
$settings_tabs['custom-settings'] = 'Custom Settings';
return $settings_tabs;
}

Sample File based on added setting tab is as below:

Update on June 27, 2023