A WordPress-centric search engine for devs and theme authors



customize_loaded_components ›

Since4.4.0
Deprecatedn/a
apply_filters( 'customize_loaded_components', $this->components, $this )
Parameters: (2)
  • (array) $components List of core components to load.
    Required: Yes
  • (WP_Customize_Manager) $this WP_Customize_Manager instance.
    Required: Yes
See:
  • WP_Customize_Manager::__construct()
Defined at:
Codex:

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 {@see 'plugins_loaded'} action, so it cannot be added in a theme.





Source

$components = apply_filters( 'customize_loaded_components', $this->components, $this );