Gets the CSS variable name for a duotone preset.
Description
Example output: –wp–preset–duotone–blue-orange
Parameters
$slug
stringrequired- The slug of the duotone preset.
Source
private static function get_css_custom_property_name( $slug ) {
return "--wp--preset--duotone--$slug";
}
Changelog
Version | Description |
---|---|
6.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.