apply_filters( 'customize_loaded_components', string[] $components , WP_Customize_Manager $this )
Filters the core Customizer components to load.
Description Description
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.
See also See also
Parameters Parameters
- $components
-
(string[]) Array of core components to load.
- $this
-
(WP_Customize_Manager) WP_Customize_Manager instance.
Source Source
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Remove the ‘Widgets’ panel from the Customizer
Expand full source codeCollapse full source code
Remove the ‘Menus’ panel from the Customizer
Expand full source codeCollapse full source code