{"id":35364,"date":"2015-03-26T14:06:33","date_gmt":"2015-03-26T14:06:33","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/geolocator\/"},"modified":"2017-11-27T13:05:46","modified_gmt":"2017-11-27T13:05:46","slug":"geolocator","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/geolocator\/","author":14346445,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.1","tested":"4.9.29","requires":"4.1.1","requires_php":"","requires_plugins":"","header_name":"Geolocator","header_author":"Nerijus Masikonis","header_description":"","assets_banners_color":"","last_updated":"2017-11-27 13:05:46","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/geolocator\/","header_author_uri":"http:\/\/www.masikonis.lt\/","rating":4,"author_block_rating":0,"active_installs":50,"downloads":3988,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"3"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1688328","resolution":"128x128","location":"assets"}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1671181","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1671181","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1671181","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1671181","resolution":"4","location":"assets"},"screenshot-5.png":{"filename":"screenshot-5.png","revision":"1671181","resolution":"5","location":"assets"}},"screenshots":{"1":"Shortcodes of the plugin in post's edit screen.","2":"Shortcodes displayed in the listing of theme.","3":"Custom meta box that allows to hide post for country.","4":"Simple widget that displays country of the visitor.","5":"Plugin settings, it allows to set fallback IP."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[32070,32071,4165,142040,32072],"plugin_category":[49],"plugin_contributors":[89708],"plugin_business_model":[],"class_list":["post-35364","plugin","type-plugin","status-publish","hentry","plugin_tags-geolocator","plugin_tags-ip-based-location","plugin_tags-ip-location","plugin_tags-show-for-country","plugin_tags-user-country","plugin_category-maps-and-location","plugin_contributors-masikonis","plugin_committers-masikonis"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/geolocator\/assets\/icon-128x128.png?rev=1688328","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/geolocator\/assets\/screenshot-1.png?rev=1671181","caption":"Shortcodes of the plugin in post's edit screen."},{"src":"https:\/\/ps.w.org\/geolocator\/assets\/screenshot-2.png?rev=1671181","caption":"Shortcodes displayed in the listing of theme."},{"src":"https:\/\/ps.w.org\/geolocator\/assets\/screenshot-3.png?rev=1671181","caption":"Custom meta box that allows to hide post for country."},{"src":"https:\/\/ps.w.org\/geolocator\/assets\/screenshot-4.png?rev=1671181","caption":"Simple widget that displays country of the visitor."},{"src":"https:\/\/ps.w.org\/geolocator\/assets\/screenshot-5.png?rev=1671181","caption":"Plugin settings, it allows to set fallback IP."}],"raw_content":"<!--section=description-->\n<p>Get website visitor's location based on IP address and show\/hide specific content depending on country.<\/p>\n\n<h4>Meta box<\/h4>\n\n<p>You can hide post for particular country by filling \"Hide for\" field in custom meta box in post's edit screen. That way the post will not be included to the loop and other parts of the website.<\/p>\n\n<h4>Shortcodes<\/h4>\n\n<p><em>Country<\/em><\/p>\n\n<p>The most basic shortcode of the plugin is [geolocator] which displays country of the visitor.<\/p>\n\n<p><em>Show<\/em><\/p>\n\n<p>You can show some specific content for particular country by using [geolocator_show] shortcode. See example below.<\/p>\n\n<pre><code>[geolocator_show for=\"US\"]This information is being shown to visitors from United States only.[\/geolocator_show]\n<\/code><\/pre>\n\n<p>The shortcode accepts \"for\" attribute. It should be a 2-letter ISO code of the country you want to show the content for.<\/p>\n\n<p><em>Hide<\/em><\/p>\n\n<p>You can hide some specific content for particular country by using [geolocator_hide] shortcode. See example below.<\/p>\n\n<pre><code>[geolocator_hide for=\"US\"]This information is NOT being shown to visitors from United States.[\/geolocator_hide]\n<\/code><\/pre>\n\n<p>The shortcode accepts \"for\" attribute. It should be a 2-letter ISO code of the country you want to hide the content for.<\/p>\n\n<h4>Widget<\/h4>\n\n<p>You can display country of the visitor by using Geolocator's widget. It allows you to choose a custom text.<\/p>\n\n<h4>Credits<\/h4>\n\n<p>This plugin includes GeoLite2 data created by MaxMind, available from <a href=\"http:\/\/www.maxmind.com\">http:\/\/www.maxmind.com<\/a>.<\/p>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>Refactored framework of the plugin, it's now more future-proof;<\/li>\n<li>Changed data source to GeoLite-Country database by MaxMind;<\/li>\n<li>Created shortcodes, widget and custom post meta box.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Depreciated Telize API provider since it does not work anymore;<\/li>\n<li>Improved the code style to match more the one defined in Codex.<\/li>\n<\/ul>","raw_excerpt":"Get website visitor&#039;s location based on IP address and show\/hide specific content depending on country.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35364"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/masikonis"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35364"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35364"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35364"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35364"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35364"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}