WordPress plugin intelligence profile

WPLocation – Geolocation and Country Rules

WordPress geolocation and geotargeting: show posts, pages and blocks by visitor country using local GeoLite2 Country data.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.1.11
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.8 · PHP 7.4
Directory statusactive
Last directory update4 Nov 202613h ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records WPLocation – Geolocation and Country Rules version 1.1.11 as active, updated 13h ago and tested up to WordPress 7.1.

Overview

About this plugin

WPLocation is a free WordPress geolocation and geotargeting plugin for country-based content. Show the right post, page or content section to a visitor’s detected country using a local GeoLite2 Country database.

What you can do with Free

  • Set include or exclude country audiences for WordPress posts, pages and categories.
  • Show selected sections with the Country visibility block in the WordPress block editor.
  • Use [wplocation_target] for country-based conditional content and [wplocation_country] to display the detected country.
  • Search country choices, review a saved audience and test a country decision before checking the real page.
  • Check your local source and database build date in Diagnostics.
  • Use your own current licensed country database without a paid WPLocation key or visitor lookup credits.

Practical examples

Show a regional announcement on a shared page, display a country-specific message, or limit a published page to selected countries. Keep useful general content outside targeted sections. IP location is approximate: country visibility is personalization, not a firewall or access control for confidential content.

Set up your first country rule

Install Free, connect a current licensed GeoLite2 Country database in Settings, check Diagnostics and create a page audience or Country visibility block. Test allowed, denied and unknown locations and your actual page cache. com/documentation/installation/.

Free, Pro and add-ons

org. com; keep Free active with Pro. Pro adds WooCommerce rules, Geo Redirects, Markets, Forms & Campaigns and opt-in Geo Analytics.

3. No paid feature implementation is locked inside Free.

SEO and cache behavior

Country visibility does not create translations, regional URLs or hreflang tags and does not guarantee search rankings. A crawler outside a whole-page audience can receive a 404, and a targeted section may be absent from its view. Use discoverable regional URLs when needed and treat crawlers like visitors from the same country.

com/documentation/geolocation-speed-seo/.

Country data, privacy and safe upgrades

Local country lookup needs a current, licensed GeoLite2 Country MMDB. Separately installed, trusted country-source adapters may provide a verified country through the extension hook; their infrastructure and privacy requirements are documented by that adapter. No visitor-country service or paid account is required by Free itself.

It does not bundle location data. You can select a private server file or use your own MaxMind account ID and license key to download one from Settings. Automatic updates are opt in and off by default.

When enabled, the updater contacts MaxMind for an authorized download and follows its signed Cloudflare R2 file URL. The providers receive your site’s server IP and MaxMind receives the account credentials. Visitor IPs remain on your server during local lookups and are not sent by the updater.

com/privacypolicy/.

Saved MaxMind credentials are non-autoloaded WordPress options, not encrypted at rest; they may appear in database backups. php. Those constants take priority.

The plugin does not display saved keys or record them in its activity log.

Store the MMDB outside the public web root. Automatic updates save validated copies beside the configured source, select them atomically and retain the last working file on failure. Recorded unchanged retired copies can be removed after two days; configured and untracked files remain the site’s responsibility.

WordPress cron needs traffic or a server cron. Follow MaxMind’s database update and deletion requirements. com/.

Geolocation is approximate and these rules are for personalization, not access control for confidential content. When a country cannot be determined, restricted content is hidden. Caches and CDNs can serve the wrong country or bypass WordPress altogether.

While Free is active, the plugin requests no-store responses for frontend HTML and country-aware post, page and search REST reads because targeted content can appear in posts, blocks and secondary queries. It purges WP Super Cache when its API is present, but you must configure and test any shared cache. Forwarded IP headers are not trusted by default; verified infrastructure can provide an address with the wplocation_verified_client_ip filter.

Upgrading an older standalone build requires a current country source. A database stored inside the old plugin folder is removed by WordPress’s replacement flow; this release does not bundle, restore or silently copy obsolete location data. Before updating, back up the site and rules, prepare a current licensed GeoLite2 Country MMDB outside the plugin folder and public web root, and select it with the documented upgrade preparation tool or configuration constant.

Existing private database settings and audience storage keys are retained. Without a readable source, country-restricted output stays hidden and the dashboard provides recovery steps. Purge and test every external page or CDN cache after updating.

For older content, standard post and text-widget rendering translates [locationtarget] markup to [wplocation_target] before WordPress processes shortcodes. This does not register the unprefixed legacy shortcode and does not edit saved posts or revisions. Escaped examples are preserved; another plugin that registers the old tag keeps ownership.

Use the prefixed shortcode for new content. Page-builder metadata, custom fields and direct do_shortcode() integrations need a separate review and conversion. Private database settings and content are per site on multisite; prepare and verify every site before a network update.

0 MaxMind libraries. txt and vendor license files.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • conditional content
  • country
  • geolocation
  • geotargeting
  • visibility
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.8 · PHP 7.4
Update activity4 Nov 202613h ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.1.101.1.11
Version1.0.01.1.10
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.