[WordPress] 外掛分享: IP2Location Variables

WordPress 外掛 IP2Location Variables 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「IP2Location Variables」是 2013-09-12 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2025-04-22,距離現在已有 12 天。
  • 外掛最低要求 WordPress 2.0 以上版本才可以安裝。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

ip2location |

外掛標籤

geolocation | ip2location | geo-targeting | targeted content | ip2location library |

內容簡介

這個實用的程式庫讓您輕鬆方便地找到網站訪客的位置,根據 IP 位址查詢提供地理資訊。它也可以用於在特定位置的文章中顯示地理數據信息,並幫助您創建地理目標行銷活動。

它是從 https://www.ip2location.com/developers/php 衍生的一個程式庫,但作為 WordPress 外掛,以簡化設置並簡化集成工作。它支援 IPv4 和 IPv6 位址。

下面是您可以從此程式庫檢索的地理位置信息:
* 國家代碼
* 國家名稱
* 國旗
* 地區名稱
* 城市名稱
* 緯度和經度
* 郵政編碼
* ISP
* 域名
* 時區
* 網路速度
* IDD代碼
* 區號
* 天氣站代碼和名稱
* MNC、MCC、移動運營商名稱
* 海拔高度
* 使用類型
* 地址類型
* 類別

此外掛支援 IP2Location IP 地理位置 BIN 資料和地理位置查詢 Web 服務。如果您正在使用 BIN 資料,您可以使用設定頁面上的嚮導每月更新 BIN 資料以獲得最精確的結果。或者,您也可以使用以下鏈接手動下載和更新 BIN 資料檔案:

BIN 檔案下載: IP2Location 商業數據庫 | IP2Location LITE 數據庫(免費版)

如果您正在使用 IP2Location IP 地理位置 Web 服務,請訪問 IP2Location Web 服務 了解詳細信息。

使用方法

在任何頁面、外掛或主題中調用函數 ip2location_get_vars() 以檢索 IP2Location 變數。變數以物件形式返回。要為自定義 IP 使用查找,請使用 ip2location_get_vars(‘IP_ADDRESS’);

更多信息

請訪問我們的網站 https://www.ip2location.com。

原文外掛簡介

This useful library makes it easy to conveniently find website visitors location and provides geographic information based on IP address lookup. It also can be used to display geo-data info in posts for specific locations and to help you create geo-target marketing campaigns.
It is a library derived from https://www.ip2location.com/developers/php but works as a WordPress plugin to simplify the setup and ease the integration work. It supports both the IPv4 and IPv6 address.
Below are the geolocation information you can retrieve from this library:
* Country code
* Country name
* Country flag
* Region name
* City name
* Latitude and longitude
* ZIP code
* ISP
* Domain name
* Time zone
* Net speed
* IDD code
* Area code
* Weather station code & name
* MNC, MCC, mobile carrier name
* Elevation
* Usage type
* Address type
* Category
This plugin supports both IP2Location IP geolocation BIN data and web service for geolocation queries. If you are using the BIN data, you can update the BIN data every month by using the wizard on the settings page for the most accurate result. Alternatively, you can also manually download and update the BIN data file using the below links:
BIN file download: IP2Location Commercial database | IP2Location LITE database (free edition)
If you are using the IP2Location IP geolocation web service, please visit IP2Location Web Service for details.
Usage
Call the function ip2location_get_vars() in any pages, plugins, or themes to retrieve IP2Location variables. The variables are returned in object. To use lookup for a custom IP, use ip2location_get_vars(‘IP_ADDRESS’);
More Information
Please visit us at https://www.ip2location.com

各版本下載點

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

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


2.3.0 | 2.4.0 | 2.5.0 | 2.5.1 | 2.5.2 | 2.5.3 | 2.5.4 | 2.5.5 | 2.5.6 | 2.5.7 | 2.5.8 | 2.5.9 | 2.6.0 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.8.2 | 2.8.3 | 2.8.4 | 2.8.5 | 2.8.6 | 2.8.7 | 2.9.0 | 2.9.1 | 2.9.2 | 2.9.3 | 2.9.4 | 2.9.5 | 2.9.6 | 2.9.7 | trunk | 2.5.11 |

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

  • SlimStat Analytics 》追蹤回訪客戶和註冊用戶,監控 JavaScript 事件,偵測入侵,分析電子郵件廣告活動。已有成千上萬的 WordPress 網站在使用它。, 主要功能, , 即時訪問日誌:測...。
  • IP Location Block 》ip位置封鎖外掛能夠根據訪問者的位置封鎖訪問,同時保護你的網站免於惡意攻擊。該外掛提供智能而強大的保護方法,稱為「WP零日漏洞預防」和「WP元數據漏洞保...。
  • Geolocation IP Detection 》P地址提供了地理信息,可以在主題或其他外掛中使用,作為 shortcode 或通過 CSS body classes。城市和國家名稱被翻譯成不同的語言(支持的語言)。, 特徵:, ...。
  • HivePress Geolocation 》HivePress Geolocation是HivePress外掛的擴充套件,允許使用者透過地理位置搜尋清單。, 示範 | 文檔 | 支援。
  • Oi Yandex.Maps for WordPress 》注意!, 當您升級外掛到版本3.1.6時,它將被停用並顯示“找不到檔案”的錯誤 - 別擔心,只需重新啟用該外掛程式,...。
  • User IP and Location 》如果您希望在 WordPress 網站上顯示公開可用的資訊,例如訪客的 IP 位置、瀏覽器詳細資訊、作業系統等,「User IP and Location」是一個非常優秀的外掛程式。...。
  • Custom Content by Country (by Shield Security) 》來自 Shield 安全插件團隊的Custom Content by Country擴充套件,, 提供您基於用戶所在區域(如有提供)的位置,選擇顯示/隱藏內容的選項。, 透過簡單的Short...。
  • Address Autocomplete via Google for Gravity Forms 》這是一個簡單且好用的外掛程式,可以在 Gravity Form 地址欄位中使用 Google 地址自動建議 API 。如果安裝完成後,請進入 Gravity Form 的選單 ‘Autoco...。
  • If-So Geolocation 》- 使用此插件可以顯示用戶的國旗(圖像或表情符號),並記錄地理位置請求,以分析日誌來查找並排除機器人流量。- If-So 是一個簡單易用的 WordPress 插件,無...。
  • WT GeoTargeting 》WT Geotargeting 是一款免費的 CMS WordPress 外掛程式,藉由簡碼 (Shortcodes) 在網站頁面上設定地理位置定位。, 地理位置定位是將網站頁面的內容 (標題、文...。
  • Who Hit The Page – Hit Counter 》這個外掛可以在您的網站上添加一個隱形的網頁點擊計數器,讓您知道誰瀏覽了您的網頁,您可以知道每個 IP 地址所瀏覽的總頁數以及瀏覽每個頁面的每位使用者所...。
  • Kikote – Location Picker at Checkout & Google Address AutoFill Plugin for WooCommerce 》eir desired location is from your store's location. This feature is known as the Distance Based Shipping feature and helps to make shipping cost mo...。
  • GeoTargeting Lite – WordPress Geolocation 》這個針對 WordPress 的地理定位外掛是基於 Maxmind GeoIP2 資料而建立的,讓您能夠基於使用者所在的國家建立動態內容。, 透過簡單的短碼,您可以指定哪些國家...。
  • Event post 》此外掛會新增一些 meta-data 到文章中,將其轉換為完整的日曆活動。每個活動可以匯出至 ical(.ics)、outlook(vcs)、或 Google 行事曆。地理位置功能依賴於 Op...。
  • CloudGuard 》使用雲端和全球 CDN 的力量來限制您的登入頁面訪問。, CloudGuard 為您的登入頁面帶來全球和雲端驅動的保護。使用 Cloudflare 的免費地理位置服務,此超輕量...。

文章
Filter
Apply Filters
Mastodon