Cloudflare\Zone\Settings::change_ip_geolocation PHP Метод

change_ip_geolocation() публичный Метод

Change IP Geolocation setting (permission needed: #zone_settings:edit) Enable IP Geolocation to have CloudFlare geolocate visitors to your website and pass the country code to you. (https://support.cloudflare.com/hc/en-us/articles/200168236)
public change_ip_geolocation ( string $zone_identifier, string | null $value = null )
$zone_identifier string API item identifier tag
$value string | null Value of the zone setting (default: on)
    public function change_ip_geolocation($zone_identifier, $value = null)
    {
        $data = ['value' => $value];
        return $this->patch('zones/' . $zone_identifier . '/settings/ip_geolocation', $data);
    }