On this page
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
$externalbool-
Whether HTTP request is external or not.
$hoststring-
Host name of the requested URL.
$urlstring-
Requested URL.
Source
File: wp-includes/http.php. View all references
if ( ! apply_filters( 'http_request_host_is_external', false, $host, $url ) ) {
Related
Used By
| Used By | Description |
|---|---|
| wp_http_validate_url() wp-includes/http.php | Validate a URL for safe use in the HTTP API. |
Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/http_request_host_is_external