Created
          October 5, 2024 11:55 
        
      - 
      
 - 
        
Save BhargavBhandari90/e64f7c9a37c3f961b7b2d68757cbd633 to your computer and use it in GitHub Desktop.  
    Add new tab Under BB Account Setting
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?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