wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_script_attributes › WordPress Filter Hooks

Since5.7.0
Deprecatedn/a
apply_filters( 'wp_script_attributes', $attributes )
Parameters:
  • (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
Defined at:
Codex:

Filters attributes to be added to a script tag.





Source

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