Glossary Term
wp_script_add_data()
3 tags
1 category
wp_script_add_data() — Adds metadata to a script. Works only if the script has already been registered. Possible values for $key and $value: ‘strategy’ string ‘defer’ or ‘async’.
Inputs: $handle (string): Name of the script. $key (string): Name of data point for which we’re storing a value. $value (mixed): String containing the data to be added.
Returns bool: True on success, false on failure.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
