customize_loaded_components
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'customize_loaded_components', string[] $components, WP_Customize_Manager $manager )
Описание
Русский перевод этого описания пока проверяется. Показан оригинал.
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.
Фильтруемое значение
Параметры
$components
string[]
обязательный
$manager
WP_Customize_Manager
обязательный
Исходный код
wp-includes/class-wp-customize-manager.php:359
$components = apply_filters( 'customize_loaded_components', $this->components, $this );
История изменений
| Версия | Описание |
|---|---|
| 4.4.0 | Introduced. |

