Linux 软件免费装

Geolocator

开发者 masikonis
更新时间 2018年12月11日 18:54
PHP版本: 4.1.1 及以上
WordPress版本: 4.9
版权: GPLv2 or later

标签

ip location geolocator ip based location user country show for country hide for country

下载

1.0 1.0.1 1.1

详情介绍:

Get website visitor's location based on IP address and show/hide specific content depending on country. Meta box 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. Shortcodes Country The most basic shortcode of the plugin is [geolocator] which displays country of the visitor. Show You can show some specific content for particular country by using [geolocator_show] shortcode. See example below. [geolocator_show for="US"]This information is being shown to visitors from United States only.[/geolocator_show] The shortcode accepts "for" attribute. It should be a 2-letter ISO code of the country you want to show the content for. Hide You can hide some specific content for particular country by using [geolocator_hide] shortcode. See example below. [geolocator_hide for="US"]This information is NOT being shown to visitors from United States.[/geolocator_hide] The shortcode accepts "for" attribute. It should be a 2-letter ISO code of the country you want to hide the content for. Widget You can display country of the visitor by using Geolocator's widget. It allows you to choose a custom text. Credits This plugin includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

屏幕截图:

  • Shortcodes of the plugin in post's edit screen.
  • Shortcodes displayed in the listing of theme.
  • Custom meta box that allows to hide post for country.
  • Simple widget that displays country of the visitor.
  • Plugin settings, it allows to set fallback IP.

更新日志:

1.1 1.0.1