Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: wp_validate_redirect() | Validates a URL for use in a redirect. |
Mark allowed redirect hosts safe for HTTP requests as well.
Attached to the ‘http_request_host_is_external’ filter.
(bool) (Required)
(string) (Required)
(bool)
File: wp-includes/http.php
function allowed_http_request_hosts( $is_external, $host ) { if ( ! $is_external && wp_validate_redirect( 'http://' . $host ) ) { $is_external = true; } return $is_external; }
Version | Description |
---|---|
3.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/allowed_http_request_hosts