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'.
Source
Changelog
Version | Description |
---|---|
4.9.5 | The default value was changed to 'strict-origin-when-cross-origin'. |
4.9.0 | Introduced. |