Skip to:
Content
Pages
Categories
Search
Top
Bottom

Email Tab hide/remove


  • janjalanie
    Participant

    @janjalanie

    Hi, is there anyone here knows how to remove or Hide Email tab under profile settings the email tab?
    I am running the latest version of WordPress and BuddyPress thank you in advance 🙂

Viewing 1 replies (of 1 total)

  • Venutius
    Moderator

    @venutius

    I think you should be able to do something like this:

    function bpex_remove_email_item_on_usermenu() {
    global $wp_admin_bar;
    
    	if ( bp_use_wp_admin_bar() ) {
    		$wp_admin_bar->remove_node( 'my-account-settings-notifications' );
    	}
    
    }
    add_action( 'wp_before_admin_bar_render', 'bpex_remove_email_item_on_usermenu' );
    
    function bpex_remove_profile_settings_email_tab() {
    
    	if( bp_is_active( 'xprofile' ) ) :	
    
    		bp_core_remove_subnav_item( 'settings', 'notifications' );
    
    	endif;
    
    }
    add_action( 'bp_actions', 'bpex_remove_profile_settings_email_tab' );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar