Honeill Visitor Country Detection detects a visitor’s country (ISO 3166-1 alpha-2, e.g. GB) from their IP address using MaxMind’s GeoLite2 database, and exposes it through a single WordPress filter so your theme or plugin can use it with no hard dependency.
The GeoLite2 database is not bundled — MaxMind’s licence does not allow redistribution. Instead you enter your own free MaxMind account ID and licence key once on the settings screen. The plugin then:
wp-content/uploads (so it survives plugin updates),You never download or upload a database by hand.
If your site is behind Cloudflare, the plugin uses Cloudflare’s own country header for visitors who come through it — exact, and no lookup needed — and only falls back to the database otherwise.
$country = apply_filters( 'honeill_visitor_country_detection_country_code', '' );
Returns a two-letter country code, or an empty string when it can’t be determined (local IP, missing database, etc.) — your code decides the fallback. Results are cached per IP, so it’s cheap to call on every request.
Prefer REST? GET /wp-json/honeill-visitor-country-detection/v1/country returns { "country": "GB" } for the caller.
This product includes GeoLite2 Data created by MaxMind, available from https://www.maxmind.com. This plugin is an independent project and is not affiliated with, endorsed, or sponsored by MaxMind, Inc. GeoIP and GeoLite2 are trademarks of MaxMind, Inc.
This plugin connects to MaxMind to download the GeoLite2 country database, which it needs to resolve countries. The database is not shipped with the plugin because MaxMind’s licence prohibits redistribution.
https://download.maxmind.com/geoip/databases/GeoLite2-Country/download). MaxMind redirects the download to its own file storage, which is fetched without your credentials. If no account ID is set, MaxMind’s older endpoint (https://download.maxmind.com/app/geoip_download) is used instead.By using this plugin you agree to MaxMind’s GeoLite2 End User License Agreement and Privacy Policy:
Optional usage statistics:
https://honeill-plugin-telemetry.vercel.app/api/v1/report and /api/v1/forget), run by the plugin’s author.