Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable password change


  • mayawi
    Participant

    @mayawi

    Hi,

    I am building Intranet and using BuddyPress so all employees have profile page. I need to disable the password change. We integrated OneLogin to the Intranet site so employees only have access through that and I don’t want them to change their password from the Intranet.

    My other question how do I access the Navigation menu of the BuddyPress to change order or disable some items?

    Thank you for your help.

    May Fathallah

Viewing 1 replies (of 1 total)

  • 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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar