allowed_http_origin WordPress Filter Hook

The allowed_http_origin hook allows you to specify which domains are allowed to access your Wordpress site. This is useful for security purposes, as it can help to prevent cross-site scripting attacks.

apply_filters( 'allowed_http_origin', string $origin, string $origin_arg ) #

Change the allowed HTTP origin result.


Parameters

$origin

(string)Origin URL if allowed, empty string if not.

$origin_arg

(string)Original origin string passed into is_allowed_http_origin function.


Top ↑

Source

File: wp-includes/http.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.4.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.