Filters attributes to be added to a script tag.
$attributesarray
<script> tag attributes.<script> tag for entries with a boolean value, and that are true.$datastring
$attributes = apply_filters( 'wp_inline_script_attributes', $attributes, $data );
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_inline_script_attributes