wp_tinycolor_string_to_rgb
- %1$s is private and should not be used in themes or plugins directly.
- wp_tinycolor_string_to_rgb is deprecated since version 6.3.0!
wp_tinycolor_string_to_rgb ( $color_str )
Access:Parameters:- (string) color_str CSS color string.
Links:Returns:Defined at:Change Log: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: 6.3.0
Description
Parses hex, hsl, and rgb CSS strings using the same regex as TinyColor v1.4.2
used in the JavaScript. Only colors output from react-color are implemented.Direct port of TinyColor's function, lightly simplified to maintain
consistency with TinyColor.