clean_url()

clean_url()函数是Wordpress函数,检查并清除URL。

clean_url( string $url, array $protocols = null, string $context = ‘display’ )

检查并清除URL。
Checks and cleans a URL.

说明(Description)

另见函数 esc_url()


参数(Parameters)

参数类型必填说明
$url(string)必需要清除的URL。
$protocols(array)可选一系列可接受的协议。
$context(string)可选如何使用URL。默认为“显示”。

返回(Return)

(string)应用“clean_url”筛选器后清除的$url。


源码(Source)

clean_url() 函数的代码位于 wp-includes/formatting.php.
更新版本源码位置使用被使用
3.0.0wp-includes/deprecated.php:203402
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索