Uses
| Uses | Description | 
|---|---|
| wp-includes/functions.wp-scripts.php: wp_scripts() | Initialize $wp_scripts if it has not been set. | 
Add metadata to a script.
Works only if the script has already been added.
Possible values for $key and $value: ‘conditional’ string Comments for IE 6, lte IE 7, etc.
(string) (Required) Name of the script.
(string) (Required) Name of data point for which we're storing a value.
(mixed) (Required) String containing the data to be added.
(bool) True on success, false on failure.
File: wp-includes/functions.wp-scripts.php
function wp_script_add_data( $handle, $key, $value ) {
	return wp_scripts()->add_data( $handle, $key, $value );
}  | Version | Description | 
|---|---|
| 4.2.0 | Introduced. | 
    © 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/functions/wp_script_add_data