rest_parse_hex_color
rest_parse_hex_color ( $color )
Parameters:- (string) color 3 or 6 digit hex color (with #).
Returns:- (string|false) Color value on success, false on failure.
Defined at: - Introduced in WordPress: 5.4.0
- Deprecated in WordPress: —
Description
Parses a 3 or 6 digit hex color (with #).