wphooks.info - http_request_host_is_external

http_request_host_is_external

(trunk - 5.0-alpha-42732)

The hook occurs in the following file:

wp-includes/http.php:
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
				 * 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;
	}