customize_loaded_components

customize_loaded_components

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('customize_loaded_components') is found 1 times:

  • /wp-includes/class-wp-customize-manager.php line 359
    		 *
    		 * @param string[]             $components Array of core components to load.
    		 * @param WP_Customize_Manager $manager    WP_Customize_Manager instance.
    		 */
    		$components = apply_filters( 'customize_loaded_components', $this->components, $this );
    
    		require_once ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php';
    		$this->selective_refresh = new WP_Customize_Selective_Refresh( $this );
    
    		if ( in_array( 'widgets', $components, true ) ) {
    			require_once ABSPATH . WPINC . '/class-wp-customize-widgets.php';
    

See this hook used in plugins: