A WordPress-centric search engine for devs and theme authors



pre_prepare_themes_for_js ›

Since4.2.0
Deprecatedn/a
apply_filters( 'pre_prepare_themes_for_js', array()
Parameters: (3)
  • (array) $prepared_themes An associative array of theme data. Default empty array.
    Required: Yes
  • (null|array) $themes An array of WP_Theme objects to prepare, if any.
    Required: Yes
  • (string) $current_theme The current theme slug.
    Required: Yes
Defined at:
Codex:

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.





Source

$prepared_themes = (array) apply_filters( 'pre_prepare_themes_for_js', array(), $themes, $current_theme );