wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



pre_prepare_themes_for_js › WordPress Filter Hooks

Da4.2.0
Deprecaton/a
› apply_filters( 'pre_prepare_themes_for_js', array()
Parametri: (3)
  • () prepared_themes An associative array of theme data. Default empty array.
    Richiesto: Sì
  • () themes An array of theme objects to prepare, if any.
    Richiesto: Sì
  • () current_theme The active theme slug.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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