wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_prepare_themes_for_js › Filtr WordPress Hooks

Od4.2.0
Przestarzałyn/a
› apply_filters( 'pre_prepare_themes_for_js', array()
Parametry: (3)
  • () prepared_themes An associative array of theme data. Default empty array.
    Wymagane: Tak
  • () themes An array of theme objects to prepare, if any.
    Wymagane: Tak
  • () current_theme The active theme slug.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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