Hexadecimal color without its leading "#", or an empty string when the value is not a color.
Every color printed by the plugin goes through here, so a stored value that is not a hex color can never reach a style or data attribute.
| Parameters | |||
|---|---|---|---|
mixed
|
$color |
# | |
| Returns | |
|---|---|
string
|
|