wphooks.info - http_request_host_is_external

http_request_host_is_external

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/http.php:
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
				 * Check if HTTP request is external or not.
				 *
				 * Allows to change and allow external requests for the HTTP request.
				 *
				 * @since 3.6.0
				 *
				 * @param bool   false Whether HTTP request is external or not.
				 * @param string $host IP of the requested host.
				 * @param string $url  URL of the requested host.
				 */
				if ( ! apply_filters( 'http_request_host_is_external', false, $host, $url ) )
					return false;
			}
		}
	}

	if ( empty( $parsed_url['port'] ) )
		return $url;

	$port = $parsed_url['port'];