A WordPress-centric search engine for devs and theme authors



wp_inline_script_attributes ›

Since5.7.0
Deprecatedn/a
apply_filters( 'wp_inline_script_attributes', $attributes, $javascript )
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_inline_script_attributes', $attributes, $javascript );