Skip to content

Instantly share code, notes, and snippets.

@BhargavBhandari90
Created October 5, 2024 11:55
Show Gist options
  • Save BhargavBhandari90/e64f7c9a37c3f961b7b2d68757cbd633 to your computer and use it in GitHub Desktop.
Save BhargavBhandari90/e64f7c9a37c3f961b7b2d68757cbd633 to your computer and use it in GitHub Desktop.
Add new tab Under BB Account Setting
<?php
/**
*
*Setup tab under Account Setting.
*/
function custom_settings_tab() {
bp_core_new_subnav_item( array(
'name' => __( 'BB Member Info', 'buddyboss' ),
'slug' => 'bb-member-info',
'parent_url' => bp_loggedin_user_domain() . bp_get_settings_slug() . '/',
'parent_slug' => bp_get_settings_slug(),
'screen_function' => array( $this, 'bbac_memberinfo_tab_screen' ),
'position' => 10,
'user_has_access' => bp_is_my_profile(),
) );
}
add_action( 'bp_setup_nav', 'custom_settings_tab' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment