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



wp_script_attributes › Hooks de Filtros WordPress

Desde5.7.0
Obsoleton/a
apply_filters( 'wp_script_attributes', $attributes )
Parâmetros:
  • (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.
    Required: Yes
Definido em:
Codex:

Filters attributes to be added to a script tag.





Fonte

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