WordPress at a glance
filter is not described

wp_inline_script_attributes filter-hook . WP 5.7.0

Filters attributes to be added to a script tag.

Usage

add_filter( 'wp_inline_script_attributes', 'filter_function_name_9800', 10, 2 );
function filter_function_name_9800( $attributes, $javascript ){
	// filter...

	return $attributes;
}
$attributes(array)
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.
$javascript
-

Changelog

Since 5.7.0 Introduced.

Where the hook is called

wp_get_inline_script_tag()
wp_inline_script_attributes
wp-includes/script-loader.php 2434
$attributes = apply_filters( 'wp_inline_script_attributes', $attributes, $javascript );

Where in WP core the hook is used WordPress

Usage not found.