WP_Duotone::get_css_custom_property_name()
Gets the CSS variable name for a duotone preset.
Example output:
--wp--preset--duotone--blue-orange
Method of the class: WP_Duotone{}
No Hooks.
Return
String
. The CSS variable name.
Usage
$result = WP_Duotone::get_css_custom_property_name( $slug );
- $slug(string) (required)
- The slug of the duotone preset.
Changelog
Since 6.3.0 | Introduced. |
WP_Duotone::get_css_custom_property_name() WP Duotone::get css custom property name code WP 6.7.1
private static function get_css_custom_property_name( $slug ) { return "--wp--preset--duotone--$slug"; }