Core Function
View Source on Trac ↗ sanitize_hex_color_no_hash()
sanitize_hex_color_no_hash( mixed $color ) Sanitizes a hex color without a hash. Use sanitize_hex_color() when possible.
Parameters 1 required
| Name / Type | Description |
|---|---|
| string | $color Required |
Return Value
((string)
| null)
Function Information
Since Version
3.4.0
Source File
wp-includes/formatting.php
Advertisement