admin_referrer_policy

admin_referrer_policy

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8.2

apply_filters('admin_referrer_policy') is found 1 times:

  • /wp-includes/functions.php line 7166
    	 * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
    	 *
    	 * @param string $policy The admin referrer policy header value. Default 'strict-origin-when-cross-origin'.
    	 */
    	$policy = apply_filters( 'admin_referrer_policy', $policy );
    
    	header( sprintf( 'Referrer-Policy: %s', $policy ) );
    }
    
    /**
     * Retrieves a list of protocols to allow in HTML attributes.