wpseek.com
WordPress开发者和主题制作者的搜索引擎
sanitize_hex_color › WordPress Function
Since3.4.0
已弃用n/a
› sanitize_hex_color ( $color )
| 参数: |
|
| 返回: |
|
| 定义在: |
|
| 文档: |
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_term, sanitize_user, sanitize_html_class, sanitize_text_field