WPDev.one
Core Function
View Source on Trac ↗

wp_style_add_data()

wp_style_add_data( mixed $handle, mixed $key, mixed $value )

Adds metadata to a CSS stylesheet.

Parameters 3 required

Name / Type Description
$handle
string

Name of the stylesheet.

Required
string

$key Name of data point for which we're storing a value. Accepts 'conditional', 'rtl' and 'suffix', 'alt', 'title' and 'path'.

Required
$value
mixed

String containing the CSS data to be added.

Required

Return Value

(bool)
True on success, false on failure.

Function Information

Since Version
3.6.0
Source File
wp-includes/functions.wp-styles.php
Advertisement