wp_script_add_data
wp_script_add_data ( $handle, $key, $value )
Parameters:- (string) handle Name of the script.
- (string) key Name of data point for which we're storing a value.
- (mixed) value String containing the data to be added.
See:- WP_Dependencies::add_data()
Returns:- (bool) True on success, false on failure.
Defined at: - Introduced in WordPress: 4.2.0
- Deprecated in WordPress: —
Description
Adds metadata to a script.Works only if the script has already been registered.
Possible values for $key and $value:
'conditional' string Comments for IE 6, lte IE 7, etc.