Glossary Term
wp_style_add_data()
wp_style_add_data() — Adds metadata to a CSS stylesheet. Works only if the stylesheet has already been registered. Possible values for $key and $value: ‘rtl’ bool|string To declare an RTL stylesheet. ‘suffix’ string Optional suffix, used in combination with RTL. ‘alt’ bool For rel=”alternate stylesheet”. ‘title’ string For preferred/alternate stylesheets. ‘path’ string The absolute path to a stylesheet. Stylesheet will load inline when ‘path’ is set.
Inputs: $handle (string): Name of the stylesheet. $key (string): Name of data point for which we’re storing a value. Accepts ‘rtl’ and ‘suffix’, ‘alt’, ‘title’ and ‘path’. $value (mixed): String containing the CSS 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…
