Filter hook 'pre_prepare_themes_for_js'

in WP Core File wp-admin/includes/theme.php at line 669

Description

Filters theme data before it is prepared for JavaScript. Passing a non-empty array will result in wp_prepare_themes_for_js() returning early with that value instead.

Occurrences

Filename Line Number
wp-admin/includes/theme.php 669

Parameters

Type Name Description
array $prepared_themes An associative array of theme data. Default empty array.
WP_Theme[]|null $themes An array of theme objects to prepare, if any.
string $current_theme The active theme slug.

PHP Doc

/**
	 * Filters theme data before it is prepared for JavaScript.
	 *
	 * Passing a non-empty array will result in wp_prepare_themes_for_js() returning
	 * early with that value instead.
	 *
	 * @since 4.2.0
	 *
	 * @param array           $prepared_themes An associative array of theme data. Default empty array.
	 * @param WP_Theme[]|null $themes          An array of theme objects to prepare, if any.
	 * @param string          $current_theme   The active theme slug.
	 */