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.0 | wp-admin/includes/theme.php:605 | 1 | 0 |