WP_Duotone::get_css_custom_property_name
Gets the CSS variable name for a duotone preset.
Example output:
--wp--preset--duotone--blue-orange
Метод класса: WP_Duotone{}
Хуков нет.
Возвращает
Строку. The CSS variable name.
Использование
$result = WP_Duotone::get_css_custom_property_name( $slug );
- $slug(строка) (обязательный)
- The slug of the duotone preset.
Список изменений
| С версии 6.3.0 | Введена. |
Код WP_Duotone::get_css_custom_property_name() WP Duotone::get css custom property name WP 7.1
private static function get_css_custom_property_name( $slug ) {
return "--wp--preset--duotone--$slug";
}