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



http_request_reject_unsafe_urls ›

Since5.1.0
已弃用n/a
apply_filters( 'http_request_reject_unsafe_urls', false, $url )
参数: (2)
  • (bool) $pass_url Whether to pass URLs through wp_http_validate_url(). Default false.
    Required: Yes
  • (string) $url The request URL.
    Required: Yes
定义在:
文档:

Filters whether to pass URLs through wp_http_validate_url() in an HTTP request.





源码

'reject_unsafe_urls'  => apply_filters( 'http_request_reject_unsafe_urls', false, $url ),