http_request_host_is_external WordPress Filter Hook

The http_request_host_is_external hook allows you to check if a given hostname is an external hostname or not. This can be useful for ensuring that requests to external hostnames are properly handled.

apply_filters( 'http_request_host_is_external', bool $external, string $host, string $url ) #

Check if HTTP request is external or not.


Description

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


Top ↑

Parameters

$external

(bool)Whether HTTP request is external or not.

$host

(string)Host name of the requested URL.

$url

(string)Requested URL.


Top ↑

Source

File: wp-includes/http.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.