WooCommerce Code Reference

Value

Interfaces, Classes and Traits

CalcFunction
Support for `-webkit-calc` and `-moz-calc` is deprecated in version 8.8.0, and will be removed in version 9.0.0.
CalcRuleValueList
This class is used to represent all multivalued rules like `font: bold 12px/3 Helvetica, Verdana, sans-serif;` (where the value would be a whitespace-separated list of the primitive value `bold`, a slash-separated list and a comma-separated list).
Color
`Color's can be input in the form #rrggbb, #rgb or schema(val1, val2, …) but are always stored as an array of ('s' => val1, 'c' => val2, 'h' => val3, …) and output in the second form.
CSSFunction
A `CSSFunction` represents a special kind of value that also contains a function name and where the values are the function’s arguments. It also handles equals-sign-separated argument lists like `filter: alpha(opacity=90);`.
CSSString
This class is a wrapper for quoted strings to distinguish them from keywords.
LineName
A `ValueList` represents a lists of `Value`s, separated by some separation character (mostly `,`, whitespace, or `/`).
PrimitiveValue
Abstract base class for specific classes of CSS values: `Size`, `Color`, `CSSString` and `URL`, and another abstract subclass `ValueList`.
RuleValueList
This class is used to represent all multivalued rules like `font: bold 12px/3 Helvetica, Verdana, sans-serif;` (where the value would be a whitespace-separated list of the primitive value `bold`, a slash-separated list and a comma-separated list).
Size
A `Size` consists of a numeric `size` value and a unit.
URL
This class represents URLs in CSS. `URL`s always output in `URL("")` notation.
Value
Abstract base class for specific classes of CSS values: `Size`, `Color`, `CSSString` and `URL`, and another abstract subclass `ValueList`.
ValueList
A `ValueList` represents a lists of `Value`s, separated by some separation character (mostly `,`, whitespace, or `/`).