wpseek.com
A WordPress-centric search engine for devs and theme authors



http_request_host_is_external › WordPress Filter Hooks

Since3.6.0
Deprecatedn/a
apply_filters( 'http_request_host_is_external', false, $host, $url )
Parameters: (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
Defined at:
Codex:

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