How to remove Import Export menu in Client Frontend Dashboard

Import Export Menu

Copy and paste this code in you functions.php file in you active theme.

add_filter('wpcfe_after_sidebar_menus', 'wpcfe_after_sidebar_menus_callback', 20 );
function wpcfe_after_sidebar_menus_callback( $menu_array ){
	/*
	 * $menu_array['wpcie-menu'] - Is the Import Export menu
	 */
	$current_user = wp_get_current_user();

	if( in_array( 'wpcargo_client' , $current_user->roles ) ){
		unset($menu_array['wpcie-menu']);		
	}

	return $menu_array;
}
0
    0
    Your Cart
    Your cart is emptyReturn to Shop