Title: Region Detect
Author: joebrewer
Published: <strong>2011 年 5 月 26 日</strong>
Last modified: 2013 年 10 月 17 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/regiondetect.svg)

# Region Detect

 由 [joebrewer](https://profiles.wordpress.org/joebrewer/) 開發

[下載](https://downloads.wordpress.org/plugin/regiondetect.1.02.05.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/regiondetect/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/regiondetect/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/regiondetect/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/regiondetect/#developers)

 [技術支援](https://wordpress.org/support/plugin/regiondetect/)

## 外掛說明

Region detect is a plugin for WordPress that detects the country that the current
visitor is browsing from.

It can display the country to the user; something like: Hello visitor from Spain!
or display a flag of the country. The plugin also makes the ISO 3166-1 country code
and country name avaliable to other plugins.

## 安裝方式

 1. Extract the zip file and just drop the contents in the `wp-content/plugins/` directory
    of your WordPress installation.
 2. Activate the plugin through the ‘Plugins’ page.
 3. Copy the MaxMind country database to the plugin folder, or add your MaxMind license
    key to the plugin admin panel.
 4. If you are using the web service enable caching and select the cache length that
    you need.
 5. Use %%COUNTRYCODE%% or %%COUNTRYNAME%% in your posts to display the two character
    country code or country name respectively.

## 常見問題集

  Do I have to pay for the MaxMind database?

No, MaxMind offer a free version of the database. However the paid for version is
more accurate.

  I am a wordpress developer and want to access the country code or name in my code.
How do I do that?

Easy 🙂 Just declare the global variables $rdISO3166_1 or $rdCountryName in your
code and away you go.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Region Detect〉的開發相關工作。

參與者

 *   [ joebrewer ](https://profiles.wordpress.org/joebrewer/)

[將〈Region Detect〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/regiondetect)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/regiondetect/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/regiondetect/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/regiondetect/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/regiondetect/)。

## 變更記錄

#### 1.00.00

 * Initial version

#### 1.01.00

 * Added option to set the country from the url

#### 1.02.00

 * Corrected bug with the cache clearing too quickly
 * Added a table that shows countries and number of ip addresses that are cached

#### 1.02.01

 * Corrected spelling mistakes

#### 1.02.02

 * Removed debugging code

#### 1.02.04

 * Fixed installation bug which was causing a crash when installing

#### 1.02.05

 * Made plugin multisite compliant

## 中繼資料

 *  版本 **1.02.05**
 *  最後更新 **13 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.1.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.6.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/regiondetect/)
 * 標籤:
 * [country detection](https://tw.wordpress.org/plugins/tags/country-detection/)
   [geolocation](https://tw.wordpress.org/plugins/tags/geolocation/)[localisation](https://tw.wordpress.org/plugins/tags/localisation/)
   [localization](https://tw.wordpress.org/plugins/tags/localization/)
 *  [進階檢視](https://tw.wordpress.org/plugins/regiondetect/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/regiondetect/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/regiondetect/reviews/)

## 參與者

 *   [ joebrewer ](https://profiles.wordpress.org/joebrewer/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/regiondetect/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.brewsterware.com/region-detect-wordpress-plugin.html)