Title: Ip2country
Author: webvitalii
Published: <strong>2011 ལོའི་ཟླ 7 ཚེས 9 ཉིན།</strong>
Last modified: 2020 ལོའི་ཟླ 8 ཚེས 9 ཉིན།

---

མཐུད་སྣེ་བཤེར་འཚོལ།

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/ip2country.svg)

# Ip2country

 རྩོམ་པ་པོ། [webvitalii](https://profiles.wordpress.org/webvitaly/)

[ཕབ་ལེན།](https://downloads.wordpress.org/plugin/ip2country.1.3.zip)

 * [ཞིབ་ཕྲ།](https://bo.wordpress.org/plugins/ip2country/#description)
 * [གདེང་འཇོག](https://bo.wordpress.org/plugins/ip2country/#reviews)
 *  [སྒྲིག་འཇུག](https://bo.wordpress.org/plugins/ip2country/#installation)
 * [ཡར་རྒྱས།](https://bo.wordpress.org/plugins/ip2country/#developers)

 [རམ་འདེགས།](https://wordpress.org/support/plugin/ip2country/)

## ཞིབ་བརྗོད།

 * **[WordPress Pro plugins](http://web-profile.net/wordpress/plugins/)**
 * **[Ip2country plugin](http://web-profile.net/wordpress/plugins/ip2country/)**
 * **[Donate](http://web-profile.net/donate/)**
 * Code is based on: [phpweby.com/software/ip2country](http://phpweby.com/software/ip2country)
 * Ip2country database table is based on: [maxmind.com](http://maxmind.com/)
 * Ip2country_info database table is based on: [ip2nation.com](http://www.ip2nation.com/)
 * Last IP database update: 15-jan-2012
 * Ip2country database is stored on your site.

Get country code or country name:

    ```
    <?php
    $ip2country = ip2country();
    echo ' Country code: '.$ip2country->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:

    ```
    <?php
    $ip2country_info = ip2country_info($ip2country->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](http://web-profile.com.ua/wordpress/plugins/ip2country/)

#### Useful:

 * [“Page-list” – show list of pages with shortcodes](https://wordpress.org/plugins/page-list/)
 * [“Iframe” – embed content](https://wordpress.org/plugins/iframe/)
 * [WordPress Pro plugins](http://web-profile.net/wordpress/plugins/)

## གཏུབ་རེིས།

[⌊Ip2country table⌉⌊Ip2country table⌉[

Ip2country table

[⌊Ip2country_info table⌉⌊Ip2country_info table⌉[

Ip2country_info table

## སྒྲིག་འཇུག

 1. install and activate the plugin on the Plugins page
 2. insert [ip2country dump](http://svn.wp-plugins.org/ip2country/trunk/wp_ip2country.zip)
    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

## གདེང་འཇོག

There are no reviews for this plugin.

## བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“Ip2country” is open source software. The following people have contributed to this
plugin.

བྱས་རྗེས་འཇོག་མཁན།

 *   [ webvitalii ](https://profiles.wordpress.org/webvitaly/)

[ཁྱེད་ཀྱི་སྐད་ཡིག་ནང་ལ་ “Ip2country” ཡིག་སྒྱུར་བྱོས།](https://translate.wordpress.org/projects/wp-plugins/ip2country)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ip2country/), check
out the [SVN repository](https://plugins.svn.wordpress.org/ip2country/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/ip2country/) by 
[RSS](https://plugins.trac.wordpress.org/log/ip2country/?limit=100&mode=stop_on_copy&format=rss).

## དག་བཅོས་ཉིན་ཐོ།

#### 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;

## ཟུར་བརྗོད།

 *  Version **1.3**
 *  Last updated **ལོ 6 སྔོན།**
 *  Active installations **10+**
 *  WordPress version ** 3.0 ཡང་ན་དེ་ལས་མཐོ་བ། **
 *  Tested up to **5.4.21**
 *  Language
 * [English (US)](https://wordpress.org/plugins/ip2country/)
 * Tags
 * [country](https://bo.wordpress.org/plugins/tags/country/)[geolocation](https://bo.wordpress.org/plugins/tags/geolocation/)
   [ip](https://bo.wordpress.org/plugins/tags/ip/)[ip to country](https://bo.wordpress.org/plugins/tags/ip-to-country/)
   [ip2country](https://bo.wordpress.org/plugins/tags/ip2country/)
 *  [མཐོ་རིམ་མཐོང་སྣང་།](https://bo.wordpress.org/plugins/ip2country/advanced/)

## གདེང་འཇོག

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ip2country/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ip2country/reviews/)

## བྱས་རྗེས་འཇོག་མཁན།

 *   [ webvitalii ](https://profiles.wordpress.org/webvitaly/)

## རམ་འདེགས།

Got something to say? Need help?

 [རམ་འདེགས་གླེང་སྟེགས་ལ་ལྟ།](https://wordpress.org/support/plugin/ip2country/)

## ཞལ་འདེབས།

Would you like to support the advancement of this plugin?

 [ མཐུད་སྣེ་འདི་ལ་ཞལ་འདེབས། ](http://web-profile.net/donate/)