http_origin WordPress Filter Hook

The http_origin hook allows you to add a specific HTTP header to requests made to your WordPress site. This can be useful for sites that need to make sure all requests are coming from a specific domain, or for security purposes.

apply_filters( 'http_origin', string $origin ) #

Change the origin of an HTTP request.


Parameters

$origin

(string)The original origin for the request.


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.