wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
sanitize_hex_color_no_hash › WordPress Function
Desde3.4.0
Obsoleton/a
› sanitize_hex_color_no_hash ( $color )
Parâmetros: |
|
Retorna: |
|
Definido em: |
|
Codex: |
Sanitizes a hex color without a hash. Use sanitize_hex_color() when possible.
Saving hex colors without a hash puts the burden of adding the hash on the UI, which makes it difficult to use or upgrade to other color types such as rgba, hsl, rgb, and HTML color names. Returns either '', a 3 or 6 digit hex color (without a #), or null.Funções relacionadas: sanitize_hex_color, sanitize_html_class, sanitize_locale_name, _sanitize_text_fields, sanitize_comment_cookies