wpseek.com
WordPress开发者和主题制作者的搜索引擎



customize_loaded_components › WordPress过滤钩子

Since4.4.0
已弃用n/a
› apply_filters( 'customize_loaded_components', $this->components, $this )
参数: (2)
  • () components Array of core components to load.
    Required: Yes
  • () manager WP_Customize_Manager instance.
    Required: Yes
查看:
  • WP_Customize_Manager::__construct()
定义在:
文档:

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.




源码

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