GeoIP Plugin
Download:
Download version 1.0.
If you find this plugin useful please donate to the author.
This plugin adds functionality for Maxmind.com GeoIP.
Revision History:
| version 1.0 | Original Release |
Installation:
- Copy the directory rjs-geoip and all it’s contents to the WordPress plugins directory on your server, (%WORDPRESS PATH%/wp-contents/plugins/).
- Download and copy the latest version of the GeoIP database into the rjs-geoip directory.
- You will then need to activate the plugin from the WordPress administration plugins page.
- Adjust the options as necessary.
Usage:
- The visitor_country function make GeoTargeting easy by using the following syntax:
Example:
<?php
if (is_callable('GeoIP', 'visitor_country')) {
$contry_code = GeoIP::visitor_country();
if($country_code == 'US') {
// Do Something
} else {
// Do Something Else
}
}
?>
Rodney

1 Comment
Leave a comment