Filter hook 'customize_loaded_components'

in WP Core File wp-includes/class-wp-customize-manager.php at line 359

Description

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.

Occurrences

Filename Line Number
wp-includes/class-wp-customize-manager.php 359

Parameters

Type Name Description
string[] $components Array of core components to load.
WP_Customize_Manager $manager WP_Customize_Manager instance.

PHP Doc

/**
		 * 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.
		 *
		 * @since 4.4.0
		 *
		 * @see WP_Customize_Manager::__construct()
		 *
		 * @param string[]             $components Array of core components to load.
		 * @param WP_Customize_Manager $manager    WP_Customize_Manager instance.
		 */