wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_script_attributes › WordPress Filter Hooks

Seit5.7.0
Veraltetn/v
apply_filters( 'wp_script_attributes', $attributes )
Parameter:
  • (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.
    Erforderlich: Ja
Definiert in:
Codex:

Filters attributes to be added to a script tag.





Quellcode

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