WPDev.one
Core Function
View Source on Trac ↗

wp_tinycolor_string_to_rgb()

wp_tinycolor_string_to_rgb( mixed $color_str )

Parses hex, hsl, and rgb CSS strings using the same regex as TinyColor v1.4.2

Parameters 1 required

Name / Type Description
$color_str
string

CSS color string.

Required

Return Value

(array)
RGB object.

Function Information

Since Version
5.8.0
Source File
wp-includes/deprecated.php
Advertisement