WordPress开发者和主题制作者的搜索引擎



clean_url ›

Since2.3.0
已弃用n/a
apply_filters( 'clean_url', $good_protocol_url, $original_url, $_context )
参数: (3)
  • (string) $good_protocol_url The cleaned URL to be returned.
    Required: Yes
  • (string) $original_url The URL prior to cleaning.
    Required: Yes
  • (string) $_context If 'display', replace ampersands and single quotes only.
    Required: Yes
定义在:
文档:

Filters a string cleaned and escaped for output as a URL.





源码

return apply_filters( 'clean_url', $good_protocol_url, $original_url, $_context );