Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_prepare_themes_for_js ›

Desde3.8.0
Obsoleton/a
apply_filters( 'wp_prepare_themes_for_js', $prepared_themes )
Parâmetros:
  • (array) $prepared_themes Array of themes.
    Required: Yes
Definido em:
Codex:

Filters the themes prepared for JavaScript, for themes.php.

Could be useful for changing the order, which is by name by default.





Fonte

$prepared_themes = apply_filters( 'wp_prepare_themes_for_js', $prepared_themes );