wpseek.com
A WordPress-centric search engine for devs and theme authors
sanitize_hex_color › WordPress Function
Since3.4.0
Deprecatedn/a
› sanitize_hex_color ( $color )
Parameters: |
|
Returns: |
|
Defined at: |
|
Codex: |
Sanitizes a hex color.
Returns either '', a 3 or 6 digit hex color (with #), or nothing. For sanitizing values without a #, see sanitize_hex_color_no_hash().Related Functions: sanitize_hex_color_no_hash, sanitize_user, sanitize_term, sanitize_text_field, sanitize_html_class