Filters attributes to be added to a script tag.
\array<string,$datastringwp-includes/script-loader.php:3034wp_get_inline_script_tag() * * @param array<string, string|bool> $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. * @param string $data Inline data. */ $attributes = apply_filters( 'wp_inline_script_attributes', $attributes, $data ); $processor = new WP_HTML_Tag_Processor( '<script></script>' ); $processor->next_tag(); foreach ( $attributes as $name => $value ) { /* * Lexical variations of an attribute name may represent theIntroduced in 5.7.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$attributes removed.verified against source