admin_referrer_policy WordPress Filter Hook

The admin_referrer_policy hook is used to change the Referrer Policy header for the WordPress administration area. The Referrer Policy header controls how much information is sent in the Referer header when making a request from one site to another. This hook allows you to change the Referrer Policy header for the WordPress administration area to something other than the default value.

apply_filters( 'admin_referrer_policy', string $policy ) #

Filters the admin referrer policy header value.


Parameters

$policy

(string)The admin referrer policy header value. Default 'strict-origin-when-cross-origin'.


Top ↑

Source

File: wp-admin/includes/misc.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.5The default value was changed to 'strict-origin-when-cross-origin'.
4.9.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.