function add_referrer_policy() { header("Referrer-Policy: strict-origin-when-cross-origin"); } add_action('send_headers', 'add_referrer_policy');