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



wp_script_attributes › Filtr WordPress Hooks

Od5.7.0
Przestarzałyn/a
apply_filters( 'wp_script_attributes', $attributes )
Parametry:
  • (array) $attributes Key-value pairs representing `<script>` tag attributes. Only the attribute name is added to the `<script>` tag for entries with a boolean value, and that are true.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters attributes to be added to a script tag.





Źródło

$attributes = apply_filters( 'wp_script_attributes', $attributes );