wp_prepare_themes_for_js WordPress Filter Hook
The wp_prepare_themes_for_js hook is used to prepare themes for JavaScript manipulation. This hook is typically used to add data to a theme's JSON object, which can then be accessed and manipulated by a JavaScript file.
apply_filters( 'wp_prepare_themes_for_js', array $prepared_themes ) #
Filters the themes prepared for JavaScript, for themes.php.
Description
Could be useful for changing the order, which is by name by default.
Parameters
- $prepared_themes
(array)Array of theme data.
Source
Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |