admin_referrer_policy

admin_referrer_policy

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('admin_referrer_policy') is found 1 times:

  • /wp-admin/includes/misc.php line 1436
    1432
    1433
    1434
    1435
    1436
    1437
    1438
    1439
    1440
    1441
    1442
         * @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 ) );
    }
     
    /**
     * Outputs JS that reloads the page if the user navigated to it with the Back or Forward button.