Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • Amit Agrahari
    Participant

    @amitgrhr

    @ariadnaquingles, the issue could be due to a conflict with a third-party plugin. You might want to try deactivating all plugins and then reactivating them one at a time to identify the culprit.


    Amit Agrahari
    Participant

    @amitgrhr

    @mayawi Using the following code snippet, you can completely conceal the General tab in the settings.

    add_action( 'bp_setup_nav', 'wbcom_custom_set_default_sub_nav', 20 );
    function wbcom_custom_set_default_sub_nav() {
    	//Remove the general tab
    	bp_core_remove_subnav_item( bp_get_settings_slug(), 'general', 'members' );
    
    	//Set the Email tab as the default sub nav 
    	bp_core_new_nav_default(
    		array(
    			'parent_slug'  => bp_get_settings_slug(),
    			'subnav_slug'  => 'notifications',
    			'screen_function' => 'bp_settings_screen_general',
    		)
    	);
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar