Filters attributes to be added to a script tag.
$attributesarray$datastringwp-includes/script-loader.php:3027wp_get_inline_script_tag() * * @param 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. * @param string $data Inline data. */ $attributes = apply_filters( 'wp_inline_script_attributes', $attributes, $data ); return sprintf( "<script%s>%s</script>\n", wp_sanitize_script_attributes( $attributes ), $data );} /** * Prints an inline script tag.Introduced 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