[WordPress] 外掛分享: GeoIP Content Switcher

前言介紹

  • 這款 WordPress 外掛「GeoIP Content Switcher」是 2026-02-10 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-02-12,距離現在已有 13 天。
  • 外掛最低要求 WordPress 5.8 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

pathakhrkinc |

外掛標籤

GeoIP | geolocation | woocommerce | content switcher | country detection |

內容簡介

總結:GeoIP Content Switcher 是一個專業的 WordPress 外掛,能自動偵測訪客的國家,根據國家來動態切換內容、付款方式、運送方式和產品,非常適合國際 WooCommerce 商店和多國網站。

問題與答案:
1. 這個外掛可以偵測訪客的國家嗎?
- 答:是的,這個外掛可以自動偵測訪客的國家並根據國家進行內容、付款方式、運送方式和產品切換。

2. 這個外掛是否支援子網域重新導向?
- 答:是的,這個外掛可以自動重新導向到特定國家的子網域,如美國訪客將被重新導向至 us.yoursite.com。

3. 這個外掛是否與WooCommerce相容?
- 答:是的,這個外掛與WooCommerce相容,可以根據國家過濾付款閘道、運送方式,並且可以根據國家隱藏產品或分類。

4. 這個外掛有哪些安全功能?
- 答:此外掛具有防止直接訪問資料庫檔案、輸入清潔和驗證、為所有表單提供Nonce驗證、管理員功能的能力檢查等安全功能。

5. 這個外掛有哪些要求?
- 答:此外掛需要 WordPress 5.8 或更高版本、PHP 7.4 或更高版本(相容PHP 8.0、8.1、8.2、8.3)、WooCommerce 5.0 或更高版本(可選,供電子商務功能使用)、MaxMind GeoLite2國家數據庫(免費下載)。

原文外掛簡介

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: [email protected]
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.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「GeoIP Content Switcher」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.5 | trunk |

延伸相關外掛(你可能也想知道)

  • Google for WooCommerce 》, Google Listings & Ads可讓您輕鬆地向Google平台上的購物者展示您的產品。無論您是數位廣告的新手還是市場營銷專家,您都可以通過免費和廣告來擴大您的...。
  • WooCommerce PayPal Payments 》PayPal 最新、功能最完備的付款處理解決方案。除了接受 PayPal 獨有的付款方式,也可接受信用卡/借記卡和本地付款方式。開啟 PayPal 付款選項或處理完整的付...。
  • WooCommerce Stripe Payment Gateway 》使用 Stripe 付款網關的 WooCommerce 外掛,直接在您的商店上接受 Visa、MasterCard、American Express、Discover、JCB、Diners Club、SEPA、Sofort、iDEAL、...。
  • WooCommerce Tax (formerly WooCommerce Shipping & Tax) 》WooCommerce Shipping & Tax 外掛可讓基本的電子商務功能如運送更加可靠,并減輕了您的網站基礎架構壓力。, 使用 WooCommerce Shipping & Tax 外掛,...。
  • WooCommerce Legacy REST API 》總結:, - 在WooCommerce 9.0版本起,Legacy REST API將不再是WooCommerce的一部分。, - 這款外掛程式在WooCommerce 9.0及以後版本中還原了已移除的Legacy RE...。
  • WP Crontrol 》WP Crontrol 可以讓您查看和控制 WP-Cron 系統中正在發生的事件。從管理界面,您可以:, , 查看所有的 Cron 事件以及它們的參數、循環間隔時間、回撥函數以及...。
  • PDF Invoices & Packing Slips for WooCommerce 》這個 WooCommerce 外掛可以自動為您的客戶在訂單確認電子郵件中添加 PDF 發票。包括一個基本模板(額外的模板可從 WP Overnight 購買),以及修改/建立自己的...。
  • Variation Swatches for WooCommerce 》為 WooCommerce 產品屬性打造美麗的顏色、圖片和按鈕變化的樣式, 如何安裝 WooCommerce 變化樣式外掛程式升級可變產品, , 變化樣式是易於使用的 WooCommerce ...。
  • Cart Abandonment Recovery for WooCommerce – Recover Lost Sales with Automated Emails 》現在是時候停止購物車放棄行為,並找回您失去的收入了!, 研究顯示,約有60%至80%的使用者前往結帳頁面,但沒有完成購買。即使最佳優化的結帳流程也有20%的...。
  • Pinterest for WooCommerce 》Pinterest 提供人們下一個偉大的想法。它部分收藏品,部分市場,是數百萬個分享者獲取靈感、新產品和新可能性的一站式購物平台。它就像一個視覺搜尋引擎,引...。
  • Google Analytics for WooCommerce 》這個外掛提供了 Google Analytics 與 WooCommerce 外掛之間的整合,您可以將推薦連結與購買關聯,並將交易資訊新增到您的 Google Analytics 資料中。它還支援...。
  • User Switching 》這個外掛可讓您輕鬆在 WordPress 中點擊按鈕即可快速切換使用者帳戶。您會立即登出並切換成所需使用者。這對於測試環境、協助 WooCommerce 網站上的客戶或任...。
  • CartFlows – Checkout & Funnel Builder for WooCommerce 》#1 WooCommerce 結帳 & 漏斗建置外掛 – CartFlows, ★★★★★, 相較於其他所有的 WooCommerce 結帳選項,更多 WooCommerce 商店店主都選擇了 CartFlows。為什麼呢...。
  • YITH WooCommerce Quick View 》有時半途而廢是最好的:如果你正在檢視產品列表,但其圖片仍然太小,需要打開該產品頁面,等待載入,最後才能觀察你感興趣的項目。, 因此,為什麼不使用一種...。
  • Custom Product Tabs for WooCommerce 》此外掛擴充了 WooCommerce 功能,允許商店擁有者針對產品添加自訂選項卡。這些選項卡顯示在每個產品頁面上,出現在預設的「描述」選項卡右側。, 個別產品選項...。

文章
Filter
Mastodon