customize_load_themes
apply_filters( ‘customize_load_themes’, array $themes , array $args , WP_Customize_Manager $manager )
筛选挂钩:筛选在自定义项中加载的主题数据。
Filter Hook: Filters the theme data loaded in the customizer.
说明(Description)
这允许从外部源加载主题数据,或者修改从wp_prepare_themes_for_js()加载的数据,或者WordPress.org网站通过themes_api()。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$themes | (array) | 主题数据的嵌套数组。 |
$args | (array) | 参数列表,如页面、搜索项和要查询的标记。 |
$manager | (WP_Customize_Manager) | 自定义管理器的实例。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.9.0 | wp-includes/class-wp-customize-manager.php:5861 | 1 | 0 |
customize_load_themes 为WP2原创文章,链接:https://www.wp2.cn/hook/customize_load_themes/