Quick Access to Geo Fields

Returns current geo values (from cached API response) or the entire array.

// Single fields
$country_code = CFGP_U::api('country_code');
$country      = CFGP_U::api('country');
$region       = CFGP_U::api('region');
$city         = CFGP_U::api('city');
$currency     = CFGP_U::api('currency');
$timezone     = CFGP_U::api('timezone');

// Entire API array (for debug)
$api = CFGP_U::api();
Was this page helpful?