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

Ipdata Integration Plugin

外掛說明

The plugin detects the user’s location using the Ipdata API and allows you to block access to your site for specific countries (by redirecting visitors from these countries to a specified page or URL).

The plugin also provides a handful of useful shortcodes that allows you to use the detected location data in your posts.

Global Settings

Install the plugin, navigate to the Ipdata menu item on the left. This will open the main Settings page, where you can define global redirection settings.

  • IpData API Key – enter your API key obtained from ipdata.co. Please note that the plugin won’t work without the key.
  • IpData API Timeout, sec – enter API timeout in seconds (default – 5 s).
  • Blocked countries – a list of globally blocked countries. All visitors from the specified countries will be redirected to the page specified below.
  • Page to Redirect – here you can set the page that will be shown to all visitors from the globally blocked countries. It may contain an explanation for why the user is blocked and redirected there.
  • Rules section – here you can add an unlimited number of redirection rules for specific countries.

Post/Page Specific Settings

The plugin adds a metabox to posts and pages, where you can define blocking/redirection rules for this particular post or page. It contains the same settings (except for the API key and Timeout) but they will be applied to this specific post only.

Shortcodes

The plugin provides the following shortcodes:

  • [ipdata_continent] – User’s continent code (e.g. NA, EU etc.)
  • [ipdata_country] – User’s country code (e.g. US, UK etc.)
  • [ipdata_region] – User’s region name (e.g. New York, England etc.)
  • [ipdata_city] – User’s city name (e.g. New York, London etc.)
  • [ipdata_location] – User’s latitude/longitude separated by slash.

Filters

The plugin provides a number of filters that can be used for customizations. Please contact Support for details.

螢幕擷圖

  • Global Settings page.
  • Post/page metabox.
  • Shortcodes.

使用者評論

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

參與者及開發者

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

參與者

將〈Ipdata Integration Plugin〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

  • 1.0.0: First production version.