wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
sanitize_hex_color › WordPress Function
Desde3.4.0
Obsoleton/a
› sanitize_hex_color ( $color )
| Parâmetros: |
|
| Retorna: |
|
| Definido em: |
|
| 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().Funções relacionadas: sanitize_hex_color_no_hash, sanitize_term, sanitize_user, sanitize_html_class, sanitize_text_field