admin_referrer_policy
Filters the admin referrer policy header value.
Usage
add_filter( 'admin_referrer_policy', 'wp_kama_admin_referrer_policy_filter' ); /** * Function for `admin_referrer_policy` filter-hook. * * @param string $policy The admin referrer policy header value. * * @return string */ function wp_kama_admin_referrer_policy_filter( $policy ){ // filter... return $policy; }
- $policy(string)
- The admin referrer policy header value.
Default: 'strict-origin-when-cross-origin'
Changelog
Since 4.9.0 | Introduced. |
Since 4.9.5 | The default value was changed to 'strict-origin-when-cross-origin'. |
Where the hook is called
admin_referrer_policy
wp-admin/includes/misc.php 1436
$policy = apply_filters( 'admin_referrer_policy', $policy );