WP_Duotone::get_css_custom_property_name( string $slug ): string

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Gets the CSS variable name for a duotone preset.

Description

Example output: –wp–preset–duotone–blue-orange

Parameters

$slugstringrequired
The slug of the duotone preset.

Return

string The CSS variable name.

Source

private static function get_css_custom_property_name( $slug ) {
	return "--wp--preset--duotone--$slug";
}

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.