http_request_host_is_external WordPress Filter Hook
The http_request_host_is_external hook allows you to check if a given hostname is an external hostname or not. This can be useful for ensuring that requests to external hostnames are properly handled.
apply_filters( 'http_request_host_is_external', bool $external , string $host , string $url ) #
Check if HTTP request is external or not.
Description
Allows to change and allow external requests for the HTTP request.
Parameters
- $external
(bool)Whether HTTP request is external or not.
- $host
(string)Host name of the requested URL.
- $url
(string)Requested URL.
Source
File: wp-includes/http.php
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |