Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/theme.php | apply_filters | 659 | /** * 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. */ |
Hook Parameters
Parameter 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. |