plugin-icon

GeoIP Content Switcher

Automatically switches content, payments, shipping, and products based on visitor's country using GeoIP detection.
Betyg
5
Version
1.0.5
Senast uppdaterat
Feb 11, 2026

GeoIP Content Switcher is a professional WordPress plugin that automatically detects your visitor’s country and dynamically switches content, payments, shipping methods, and products accordingly. Perfect for international WooCommerce stores and multi-country websites.

Key Features

Automatic Country Detection

  • MaxMind GeoLite2 Database integration
  • Cloudflare CF-IPCountry header support
  • Session caching for optimal performance
  • Accurate IP-based geolocation

Subdomain Redirection

  • Automatic redirect to country-specific subdomains
  • Example: US visitors us.yoursite.com
  • Geo-lock option to prevent manual country switching
  • Seamless cross-subdomain session management

WooCommerce Integration

  • Filter payment gateways by country
  • Filter shipping methods by country
  • Hide products or categories by country
  • Full WooCommerce HPOS compatibility

Content Switching

  • Country-specific homepage
  • Custom header content per country
  • Custom footer content per country
  • Full Elementor and page builder support

Performance Optimized

  • Session caching with configurable duration
  • Cloudflare integration
  • Compatible with WP Rocket, LiteSpeed Cache, W3 Total Cache
  • Minimal server resource usage

Security Features

  • Database files protected from direct access
  • Input sanitization and validation
  • Nonce verification for all forms
  • Capability checks for admin functions
  • Secure session handling

Developer Friendly

  • Clean, well-documented code
  • Shortcodes for displaying country info
  • Hooks and filters for customization
  • PSR-4 autoloading

Shortcodes

  • [geoip_country] – Display visitor’s country name
  • [geoip_country format="code"] – Display country code (e.g., US, UK, IN)
  • [geoip_ip] – Display visitor’s IP address

Requirements

  • WordPress 5.8 or higher
  • PHP 7.4 or higher (compatible with PHP 8.0, 8.1, 8.2, 8.3)
  • WooCommerce 5.0 or higher (optional, for e-commerce features)
  • MaxMind GeoLite2 Country Database (free download)

Use Cases

  • International e-commerce stores
  • Multi-country business websites
  • Region-specific content delivery
  • Localized payment and shipping options
  • Country-based product catalogs
  • Geo-targeted marketing campaigns

Compatibility

Themes: * Woodmart (fully tested) * Astra * Divi * Elementor * Any WordPress theme

Cache Plugins: * WP Rocket * LiteSpeed Cache * W3 Total Cache * WP Super Cache * Cloudflare

Page Builders: * Elementor * WPBakery * Beaver Builder * Divi Builder

Additional Information

About MaxMind GeoLite2

This plugin uses the free GeoLite2 database created by MaxMind, available from https://www.maxmind.com. The database provides country-level IP geolocation data.

Privacy Policy

This plugin: * Detects visitor country using IP address * Stores only country code in PHP sessions (temporary) * Does not store IP addresses in the database * Does not share data with third parties * Does not use tracking cookies

Credits

  • MaxMind GeoLite2: https://www.maxmind.com/
  • GeoIP2 PHP Library: https://github.com/maxmind/GeoIP2-php

Developer

Developed by RAJ PATHAK Email: Rajpathak.er@gmail.com

Support the Plugin

If you find this plugin helpful, please: * Rate it 5 stars on WordPress.org * Share it with others who might need it * Report bugs or suggest features in the support forum

Technical Details

System Requirements

  • WordPress 5.8+
  • PHP 7.4+ (8.0, 8.1, 8.2, 8.3 supported)
  • MySQL 5.6+ or MariaDB 10.0+
  • WooCommerce 5.0+ (optional)
  • MaxMind GeoLite2 Country Database

File Structure

  • /includes/ – Core plugin classes
  • /assets/ – CSS and JavaScript files
  • /database/ – MaxMind database location
  • /vendor/ – Composer dependencies
  • /languages/ – Translation files

Hooks and Filters

Developers can extend the plugin using WordPress hooks and filters. Documentation available in the code comments.

License

This plugin is licensed under the GPL v2 or later.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Gratispå Business-paket
Testat upp till
WordPress 6.9.1
Detta tillägg är tillgängligt för nedladdning för din .