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



wp_inline_script_attributes › WordPress Filter Hooks

Since5.7.0
Deprecatedn/a
apply_filters( 'wp_inline_script_attributes', $attributes, $javascript )
Parameters: (2)
  • (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
  • (string) $javascript Inline JavaScript code.
    Required: Yes
Defined at:
Codex:

Filters attributes to be added to a script tag.





Source

$attributes = apply_filters( 'wp_inline_script_attributes', $attributes, $javascript );