string $components, WP_Customize_Manager $manager )
Filters the core Customizer components to load.
This allows Core components to be excluded from being instantiated by filtering them out of the array. Note that this filter generally runs during the ‘plugins_loaded’ action, so it cannot be added in a theme.
Array of core components to load.
View all references
$components = apply_filters( 'customize_loaded_components', $this->components, $this );
Remove the ‘Menus’ panel from the Customizer
Remove the ‘Widgets’ panel from the Customizer