- %1$s is private and should not be used in themes or plugins directly.
wp_tinycolor_string_to_rgb ( $color_str )
- (string) color_str CSS color string.
- Introduced in WordPress: 5.8.0
- Deprecated in WordPress: —
Parses hex, hsl, and rgb CSS strings using the same regex as TinyColor v1.4.2
and the alpha value is ignored as it is not used in duotone.Direct port of TinyColor's function, lightly simplified to maintain
consistency with TinyColor.