admin_referrer_policy

admin_referrer_policy

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('admin_referrer_policy') is found 1 times:

  • /wp-admin/includes/misc.php line 1436
    	 * @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.