WP Country Tag
Wordpress plugin that show/hide content by country.
★ 0stars
29release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/shipwebdotjp/wpcountrytag/releases/download/v1.0.0/wpcountrytag.zipReadme
WP Country tag
This is a Wordpress plugin which can show/hide content by country.
Features
- Detect which country visitors are coming from based on IP address.
- Add a shortcode that shows or hides content by country.
- You can use the free database GeoLite2 or the paid database GeoIP2 provided by Maxmind.
- Auto updates database
Requirement
- Wordpress
- License key of GeoLite2 or GeoIP2.
Install
- Install this plugin for your website.
Setting
- Get a Maxmind license key.
- Open Settings -> Country Tag settings page.
- Choose a plan based on your plan.
- Input your license key.
- Save settings.
- Update DB now.
Usage
[country_text in="Country code ex US,JP" altsc="Shortcoder name for the alternative.(Option)"]This content will be shown to visitors from countries listed as "in" property. [/country_text]
[country_text not_in="Country code ex US,JP" altsc="Shortcoder name for the alternative.(Option)"]This content will be hidden to visitors from countries listed as "not_in" property[/country_text]
Note
To auto-update, make sure wp-cron is running normally.
Screenshot


Author
- ship blog
License
GPLv3
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.0.0 | Feb 12, 2022 | wpcountrytag.zip | 29 |