I tried to remove Menus from WordPress customizer (see image)
I tried the following code on functions.php file and every section was removed except Menus
//Theme customizer
function mytheme_customize_register( $wp_customize ) {
//All our sections, settings, and controls will be added here
$wp_customize->remove_section( 'title_tagline');
$wp_customize->remove_section( 'colors');
$wp_customize->remove_section( 'header_image');
$wp_customize->remove_section( 'background_image');
$wp_customize->remove_section( 'menus');
$wp_customize->remove_section( 'static_front_page');
$wp_customize->remove_section( 'custom_css');
}
add_action( 'customize_register', 'mytheme_customize_register' );
I even tried
$wp_customize->remove_panel( 'menus');
but didn’t worked i m’i missing something here .appreciate any help on this thanks in advance.