Used By
Used By | Description |
---|---|
wp-admin/includes/theme.php: wp_prepare_themes_for_js() | Prepare themes for JavaScript. |
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.
(array) An associative array of theme data. Default empty array.
(WP_Theme[]|null) An array of theme objects to prepare, if any.
(string) The current theme slug.
Version | Description |
---|---|
4.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_prepare_themes_for_js