clean_url
apply_filters( ‘clean_url’, string $good_protocol_url , string $original_url , string $_context )
过滤器::过滤已清理并转义的字符串,作为URL输出。
Filter Hook: Filters a string cleaned and escaped for output as a URL.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$good_protocol_url | (string) | 要返回的已清理的URL。 |
$original_url | (string) | 清理之前的URL。 |
$_context | (string) | 如果“显示”,则仅替换与号和单引号。 |
源码(Source)
clean_url() 函数的代码位于 wp-includes/formatting.php.
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.3.0 | wp-includes/formatting.php:4384 | 1 | 0 |
clean_url 为WP2原创文章,链接:https://www.wp2.cn/hook/clean_url/