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



http_request_host_is_external › WordPress过滤钩子

Since3.6.0
已弃用n/a
apply_filters( 'http_request_host_is_external', false, $host, $url )
参数: (3)
  • (bool) $external Whether HTTP request is external or not.
    Required: Yes
  • (string) $host Host name of the requested URL.
    Required: Yes
  • (string) $url Requested URL.
    Required: Yes
定义在:
文档:

Check if HTTP request is external or not.

Allows to change and allow external requests for the HTTP request.





源码

if ( ! apply_filters( 'http_request_host_is_external', false, $host, $url ) ) {