[WordPress] 外掛分享: Ipdata Integration Plugin

首頁外掛目錄 › Ipdata Integration Plugin
WordPress 外掛 Ipdata Integration Plugin 的封面圖片
全新外掛
安裝啟用
尚無評分
2167 天前
最後更新
問題解決
WordPress 5.0+ v1.0.0 上架:2020-05-07

內容簡介

此外掛使用 Ipdata API 偵測使用者所在地,並允許您封鎖來自特定國家的訪客訪問您的網站(透過將這些訪客重新導向到指定的頁面或 URL)。

此外掛還提供了一些實用的短代碼,可讓您在文章中使用檢測到的位置數據。

全域設置

安裝此外掛後,前往左側的 Ipdata 選單項目。這將打開主要的設定頁面,在此您可以定義全域重新導向設置。

IpData API 金鑰 - 輸入您從 ipdata.co 獲取的 API 金鑰。請注意,沒有金鑰,此外掛將無法運作。
IpData API 超時(秒)- 輸入 API 超時時間(預設-5秒)。
已屏蔽國家 - 全域已屏蔽的國家列表。來自指定國家的所有訪問者將被重新導向到下面指定的頁面。
導向頁面 - 在此您可以設置為所有全域被屏蔽的國家的訪客顯示的頁面。它可以包含用戶被屏蔽並被重新導向的原因的說明。
規則部分 - 在此您可以添加無限數量的特定國家的重定向規則。

文章/頁面特定設置

此外掛會在文章和頁面中添加一個元框,您可以在其中定義此特定文章或頁面的封鎖/重新導向規則。它包含相同的設置(API 金鑰和超時除外),但僅應用於此特定的文章。

短代碼

此外掛提供以下短代碼:

[ipdata_continent] - 使用者的大陸代碼(例如 NA、EU 等)
[ipdata_country] - 使用者的國家代碼(例如 US、UK 等)
[ipdata_region] - 使用者的地區名稱(例如紐約、英格蘭等)
[ipdata_city] - 使用者的城市名稱(例如紐約、倫敦等)
[ipdata_location] - 使用者的緯度/經度,以斜線分隔。

過濾器

此外掛提供一些過濾器,可用於自定義。有關詳細信息,請聯繫 支援中心。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

文章
Filter
Apply Filters
Mastodon