Example of how to use WP Engine's GeoTarget (formerly GeoIP) system by using PHP. WP Engine's GeoTarget is an add-on featuring MaxMind's GeoIP database.
See file "countrycodes.txt" for ISO-3166 country codes for use in plugin.
Add the geoip-example.php file to the /wp-content/plugins directory of your WordPress site. The plugin will automatically activate.
You must have WP Engine's GeoTarget addon enabled on your account for this plugin to work.