WP Manifestindependent plugin directory
manifest / content / wpcountrytag

WP Country Tag

Wordpress plugin that show/hide content by country.

by shipweb · github.com/shipwebdotjp/wpcountrytag

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.zip

Readme

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

  1. Install this plugin for your website.

Setting

  1. Get a Maxmind license key.
  2. Open Settings -> Country Tag settings page.
  3. Choose a plan based on your plan.
  4. Input your license key.
  5. Save settings.
  6. 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

Settings-Database

Settings-Info

Author

License

GPLv3

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
v1.0.0 Feb 12, 2022 wpcountrytag.zip 29