
內容簡介
這個實用的程式庫讓您輕鬆方便地找到網站訪客的位置,根據 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
