A WordPress-centric search engine for devs and theme authors



http_request_host_is_external ›

Since3.6.0
Deprecatedn/a
apply_filters( 'http_request_host_is_external', false, $host, $url )
Parameters: (3)
  • (bool) false Whether HTTP request is external or not.
    Required: Yes
  • (string) $host IP of the requested host.
    Required: Yes
  • (string) $url URL of the requested host.
    Required: Yes
Defined at:
Codex:

Check if HTTP request is external or not.

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





Source

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