http_request_host_is_external

过滤钩子


apply_filters( 'http_request_host_is_external', false, $host, $url )
参数
  • (bool)
    $external
    Whether HTTP request is external or not.
    Required:
  • (string)
    $host
    Host name of the requested URL.
    Required:
  • (string)
    $url
    Requested URL.
    Required:
定义位置
  • wp-includes/http.php
    , line 576
引入
3.6.0
弃用

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 ) ) {