{"id":13396,"date":"2011-05-26T20:17:34","date_gmt":"2011-05-26T20:17:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/regiondetect\/"},"modified":"2013-10-17T22:21:18","modified_gmt":"2013-10-17T22:21:18","slug":"regiondetect","status":"publish","type":"plugin","link":"https:\/\/fa.wordpress.org\/plugins\/regiondetect\/","author":7921908,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.02.05","stable_tag":"1.02.05","tested":"3.6.1","requires":"3.1.2","requires_php":"","requires_plugins":"","header_name":"Region Detect","header_author":"Joe Brewer","header_description":"","assets_banners_color":"","last_updated":"2013-10-17 22:21:18","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.brewsterware.com\/region-detect-wordpress-plugin.html","header_plugin_uri":"http:\/\/www.brewsterware.com\/region-detect-wordpress-plugin.html","header_author_uri":"http:\/\/www.brewsterware.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3987,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.00.00":"<p>This is the initial version.<\/p>","1.01.00":"<p>This version adds the ability to set the country from the url. Deactivate and reactivate the plugin to upgrade.<\/p>","1.02.00":"<p>Fixes a bug with the cache and added all country codes from the ISO 3166-1 set. Deactivate and reactive the plugin to upgrade.<\/p>","1.02.05":"<ul>\n<li>Made plugin multisite compliant<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.00.00","1.01.00","1.02.00","1.02.01","1.02.02","1.02.03","1.02.04","1.02.05"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[53125,4124,2342,1734],"plugin_category":[48,49],"plugin_contributors":[84910],"plugin_business_model":[],"class_list":["post-13396","plugin","type-plugin","status-publish","hentry","plugin_tags-country-detection","plugin_tags-geolocation","plugin_tags-localisation","plugin_tags-localization","plugin_category-language-tools","plugin_category-maps-and-location","plugin_contributors-joebrewer","plugin_committers-joebrewer"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/regiondetect.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Region detect is a plugin for Wordpress that detects the country that the current visitor is browsing from.<\/p>\n\n<p>It can display the country to the user; something like: Hello visitor from Spain! or display a flag of the country. The plugin also makes the ISO 3166-1 country code and country name avaliable to other plugins.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract the zip file and just drop the contents in the <code>wp-content\/plugins\/<\/code> directory of your WordPress installation.<\/li>\n<li>Activate the plugin through the 'Plugins' page.<\/li>\n<li>Copy the MaxMind country database to the plugin folder, or add your MaxMind license key to the plugin admin panel.<\/li>\n<li>If you are using the web service enable caching and select the cache length that you need.<\/li>\n<li>Use %%COUNTRYCODE%% or %%COUNTRYNAME%% in your posts to display the two character country code or country name respectively.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Do I have to pay for the MaxMind database?<\/dt>\n<dd><p>No, MaxMind offer a free version of the database. However the paid for version is more accurate.<\/p><\/dd>\n<dt>I am a wordpress developer and want to access the country code or name in my code. How do I do that?<\/dt>\n<dd><p>Easy :-) Just declare the global variables $rdISO3166_1 or $rdCountryName in your code and away you go.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.00.00<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>\n\n<h4>1.01.00<\/h4>\n\n<ul>\n<li>Added option to set the country from the url<\/li>\n<\/ul>\n\n<h4>1.02.00<\/h4>\n\n<ul>\n<li>Corrected bug with the cache clearing too quickly<\/li>\n<li>Added a table that shows countries and number of ip addresses that are cached<\/li>\n<\/ul>\n\n<h4>1.02.01<\/h4>\n\n<ul>\n<li>Corrected spelling mistakes<\/li>\n<\/ul>\n\n<h4>1.02.02<\/h4>\n\n<ul>\n<li>Removed debugging code<\/li>\n<\/ul>\n\n<h4>1.02.04<\/h4>\n\n<ul>\n<li>Fixed installation bug which was causing a crash when installing<\/li>\n<\/ul>\n\n<h4>1.02.05<\/h4>\n\n<ul>\n<li>Made plugin multisite compliant<\/li>\n<\/ul>","raw_excerpt":"A plugin that allows personalisation by displaying the visitors country name in posts and pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13396"}],"author":[{"embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/joebrewer"}],"wp:attachment":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13396"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13396"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13396"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13396"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13396"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}