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.
$prepared_themesarray
$themesWP_Theme[]|null
$current_themestring
$prepared_themes = (array) apply_filters( 'pre_prepare_themes_for_js', array(), $themes, $current_theme );
| Version | Description |
|---|---|
| 4.2.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_prepare_themes_for_js