I have used the below code to remove other items from Customizer. But unable to remove the WooCommerce section.
function my_customize_register() { global $wp_customize; $wp_customize->remove_section( 'colors' ); $wp_customize->remove_section( 'static_front_page' ); $wp_customize->remove_section( 'background_image' ); $wp_customize->remove_section( 'themes' ); $wp_customize->remove_section( 'header_image'); } add_action( 'customize_register', 'my_customize_register', 11 ); add_action('admin_menu', 'remove_unnecessary_wordpress_menus', 999); function remove_unnecessary_wordpress_menus(){ global $submenu; foreach($submenu['themes.php'] as $menu_index => $theme_menu){ if($theme_menu[0] == 'Header' || $theme_menu[0] == 'Background') unset($submenu['themes.php'][$menu_index]); } } 