Wordpress 钩子:pre_prepare_themes_for_js
文章目录
在为JavaScript准备之前过滤主题数据。
原型
apply_filters( 'pre_prepare_themes_for_js', array $prepared_themes, null|array $themes, string $current_theme )
描述
传递非空数组将导致wp_prepare_themes_for_js()提前返回该值。
参数
$prepared_themes
(array)
主题数据的关联数组。默认空数组。
$themes
(null|array)
要准备的WP_Theme对象数组(如果有)。
$current_theme
(string)
目前的主题slu ..
源文件
路径:wp-admin/includes/theme.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/pre_prepare_themes_for_js/
文章作者 iBllex
上次更新 2019-02-17