Plugin info

Total downloads: 4,206
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 8/9/2020 (1969 days ago)
Added to WordPress: 7/9/2011 (14 years old)
Minimum WordPress version: 3.0
Tested up to WordPress version: 5.4.18
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1969 days ago

20/100

Is Ip2country abandoned?

Possibly abandoned (last update 1969 days ago).

Compatibility

Requires WordPress: 3.0
Tested up to: 5.4.18
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Quick Flag
Rating 5.0/5 (3 reviews)Active installs 100

Description

Get country code or country name:

country_code;
echo ' Country name: '.$ip2country->country_name;
// or
$ip2country2 = ip2country('212.113.46.148');
echo ' Country code: '.$ip2country2->country_code;
echo ' Country name: '.$ip2country2->country_name;
?>

Get additional info about the country by country code:

country_code);
echo ' iso_code_2: '.$ip2country_info->iso_code_2;
echo ' iso_code_3: '.$ip2country_info->iso_code_3;
echo ' iso_country: '.$ip2country_info->iso_country;
echo ' country: '.$ip2country_info->country;
echo ' lat: '.$ip2country_info->lat;
echo ' lon: '.$ip2country_info->lon;
// or
$ip2country_info = ip2country_info('us');
echo ' lat: '.$ip2country_info->lat;
echo ' lon: '.$ip2country_info->lon;
?>

Ip2country support page

Useful:

Installation

  1. install and activate the plugin on the Plugins page
  2. insert ip2country dump into your database using phpMyAdmin (if your database prefix is not “wp_”, you should change prefix inside the sql database dump manually)
  3. you can use plugin functions to convert the IP-address to the country

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

  1. Ip2country table

    Ip2country table

  2. Ip2country_info table

    Ip2country_info table

Changelog

1.3

  • minor changes

1.2

  • IP database update;

1.1.0

  • Added info table from http://www.ip2nation.com/;

1.0.0

  • Initial release;