Globals

CF Geo Plugin have many globals. With globals you can easy get geo informations anywhere on your website. But first, let’s do some coding for the example:

<?php
// Check is CF Geo Plugin active and running
if(class_exists('CF_Geoplugin')) :
    // Setup custom IP address
    $arguments = array(
         'ip' => '123.456.789.0', // Custom IP address (required)
         'base_currency' => 'EUR' // Base currency (optional)
    );
    $geo = new CF_Geoplugin($arguments);
    // Display CF Geo Plugin objects
    var_dump($geo->get());
endif;
?>

On this example you will see complete object list from the CF Geo Plugin what contain geoinformations for that specific IP address.

NOTE: If you are free user and not have unlimited license, this approach can cause fast lookup leak.