pre_prepare_themes_for_js

pre_prepare_themes_for_js钩子是Wordpress钩子,过滤器::在为JavaScript准备主题数据之前对其进行过滤。

apply_filters( ‘pre_prepare_themes_for_js’, array $prepared_themes, WP_Theme[]|null $themes, string $current_theme )

说明(Description)

传递非空数组将导致wp_prepare_themes_for_js()提前返回该值。


参数(Parameters)

参数类型说明
$prepared_themes(array)主题数据的关联数组。默认空数组。
$themes(WP_Theme[] | null)要准备的主题对象数组(如果有)。
$current_theme(string)当前的主题弹头。

源码(Source)

//暂无
更新版本源码位置使用被使用
4.2.0wp-admin/includes/theme.php:60510
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索