customize_loaded_components WordPress Filter Hook

The Wordpress customize_loaded_components hook allows you to modify which components are loaded when the Customizer is initialized. This can be useful for reducing the load time of the Customizer by only loading the components you need.

apply_filters( 'customize_loaded_components', string[] $components, WP_Customize_Manager $manager ) #

Filters the core Customizer components to load.


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.

Top ↑

See also


Top ↑

Parameters

$components

(string[])Array of core components to load.

$manager

(WP_Customize_Manager)WP_Customize_Manager instance.


Top ↑

Source

File: wp-includes/class-wp-customize-manager.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More