{"id":13967,"date":"2011-07-09T22:26:30","date_gmt":"2011-07-09T22:26:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/ip2country\/"},"modified":"2020-08-09T23:23:06","modified_gmt":"2020-08-09T23:23:06","slug":"ip2country","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/ip2country\/","author":7506807,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3","stable_tag":"1.3","tested":"5.4.19","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Ip2country","header_author":"webvitaly","header_description":"","assets_banners_color":"","last_updated":"2020-08-09 23:23:06","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/web-profile.net\/donate\/","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/ip2country\/","header_author_uri":"http:\/\/web-profile.net\/wordpress\/plugins\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":4305,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.2","1.3"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":2355723,"resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":2355723,"resolution":"1","location":"plugin"}},"screenshots":{"1":"Ip2country table","2":"Ip2country_info table"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3751,4124,1493,37295,37296],"plugin_category":[49],"plugin_contributors":[77906],"plugin_business_model":[],"class_list":["post-13967","plugin","type-plugin","status-publish","hentry","plugin_tags-country","plugin_tags-geolocation","plugin_tags-ip","plugin_tags-ip-to-country","plugin_tags-ip2country","plugin_category-maps-and-location","plugin_contributors-webvitaly","plugin_committers-webvitaly"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/ip2country.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/ip2country\/trunk\/screenshot-1.png?rev=2355723","caption":"Ip2country table"},{"src":"https:\/\/ps.w.org\/ip2country\/trunk\/screenshot-2.png?rev=2355723","caption":"Ip2country_info table"}],"raw_content":"<!--section=description-->\n<ul>\n<li><strong><a href=\"http:\/\/web-profile.net\/wordpress\/plugins\/\" title=\"WordPress Pro plugins\">WordPress Pro plugins<\/a><\/strong><\/li>\n<li><strong><a href=\"http:\/\/web-profile.net\/wordpress\/plugins\/ip2country\/\" title=\"Ip2country plugin page\">Ip2country plugin<\/a><\/strong><\/li>\n<li><p><strong><a href=\"http:\/\/web-profile.net\/donate\/\" title=\"Support the development\">Donate<\/a><\/strong><\/p><\/li>\n<li><p>Code is based on: <a href=\"http:\/\/phpweby.com\/software\/ip2country\">phpweby.com\/software\/ip2country<\/a><\/p><\/li>\n<li>Ip2country database table is based on: <a href=\"http:\/\/maxmind.com\/\">maxmind.com<\/a><\/li>\n<li>Ip2country_info database table is based on: <a href=\"http:\/\/www.ip2nation.com\/\">ip2nation.com<\/a><\/li>\n<li>Last IP database update: 15-jan-2012<\/li>\n<li>Ip2country database is stored on your site.<\/li>\n<\/ul>\n\n<p>Get country code or country name:<\/p>\n\n<pre><code>&lt;?php\n$ip2country = ip2country();\necho ' Country code: '.$ip2country-&gt;country_code;\necho ' Country name: '.$ip2country-&gt;country_name;\n\/\/ or\n$ip2country2 = ip2country('212.113.46.148');\necho ' Country code: '.$ip2country2-&gt;country_code;\necho ' Country name: '.$ip2country2-&gt;country_name;\n?&gt;\n<\/code><\/pre>\n\n<p>Get additional info about the country by country code:<\/p>\n\n<pre><code>&lt;?php\n$ip2country_info = ip2country_info($ip2country-&gt;country_code);\necho ' iso_code_2: '.$ip2country_info-&gt;iso_code_2;\necho ' iso_code_3: '.$ip2country_info-&gt;iso_code_3;\necho ' iso_country: '.$ip2country_info-&gt;iso_country;\necho ' country: '.$ip2country_info-&gt;country;\necho ' lat: '.$ip2country_info-&gt;lat;\necho ' lon: '.$ip2country_info-&gt;lon;\n\/\/ or\n$ip2country_info = ip2country_info('us');\necho ' lat: '.$ip2country_info-&gt;lat;\necho ' lon: '.$ip2country_info-&gt;lon;\n?&gt;\n<\/code><\/pre>\n\n<p><a href=\"http:\/\/web-profile.com.ua\/wordpress\/plugins\/ip2country\/\">Ip2country support page<\/a><\/p>\n\n<h4>Useful:<\/h4>\n\n<ul>\n<li><a href=\"http:\/\/wordpress.org\/plugins\/page-list\/\" title=\"list of pages with shortcodes\">\"Page-list\" - show list of pages with shortcodes<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/plugins\/iframe\/\" title=\"embed content\">\"Iframe\" - embed content<\/a><\/li>\n<li><a href=\"http:\/\/web-profile.net\/wordpress\/plugins\/\" title=\"WordPress Pro plugins\">WordPress Pro plugins<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>install and activate the plugin on the Plugins page<\/li>\n<li>insert <a href=\"http:\/\/svn.wp-plugins.org\/ip2country\/trunk\/wp_ip2country.zip\">ip2country dump<\/a> into your database using phpMyAdmin (if your database prefix is not \"wp_\", you should change prefix inside the sql database dump manually)<\/li>\n<li>you can use plugin functions to convert the IP-address to the country<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.3<\/h4>\n\n<ul>\n<li>minor changes<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>IP database update;<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added info table from http:\/\/www.ip2nation.com\/;<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release;<\/li>\n<\/ul>","raw_excerpt":"Plugin converts IP-address to the country.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13967"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/webvitaly"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13967"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13967"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13967"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13967"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13967"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}