WordPress at Your Fingertips
filter is not described

http_request_host_is_external filter-hook . WP 3.6.0

Check if HTTP request is external or not.

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


add_filter( 'http_request_host_is_external', 'filter_function_name_6082', 10, 3 );
function filter_function_name_6082( $external, $host, $url ){
	// filter...

	return $external;
Whether HTTP request is external or not.
Host name of the requested URL.
Requested URL.


Since 3.6.0 Introduced.

Where the hook is called

wp-includes/http.php 572
if ( ! apply_filters( 'http_request_host_is_external', false, $host, $url ) ) {

Where in WP core the hook is used WordPress

wp-includes/default-filters.php 296
add_filter( 'http_request_host_is_external', 'allowed_http_request_hosts', 10, 2 );
wp-includes/ms-default-filters.php 129
add_filter( 'http_request_host_is_external', 'ms_allowed_http_request_hosts', 20, 2 );