Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
sanitize_hex_color_no_hash() - 清理十六进制颜色,没有hash,尽可能使用sanitize_hex_color() - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / sanitize_hex_color_no_hash()

sanitize_hex_color_no_hash( string $color )

清理十六进制颜色,没有hash,尽可能使用sanitize_hex_color()


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 5 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "7f15986f26ac0d4431c24ad52fc6d8b1" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "8f22e537f6730e1f40f6f4a12b8d4e16" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "e283cc7ab1dbef6488b2693a393334ea" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "80fa2dd3f78b55ea2349d22e0a81c475" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

color

kses 清理

sanitize 清理more...


描述

保存无hash的十六进制颜色,将增加UI的负担,这使得使用或升级到其他颜色类型(如rgba、hsl、rgb和HTML颜色名称)变得困难。

返回''、3位或6位十六进制颜色(无#)或null。


参数

$color

(string)(必填)


返回

(string|null)



源码

查看源码 官方文档


更新日志

版本描述
3.4.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194