apply_filters( ‘http_request_host_is_external’, bool $external, string $host, string $url )

In this article

Checks 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

if ( ! apply_filters( 'http_request_host_is_external', false, $host, $url ) ) {

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.