[WordPress] 外掛分享: Foxlis Geo

首頁外掛目錄 › Foxlis Geo
10+
安裝啟用
☆☆☆☆
1/5 分(1 則評價)
1775 天前
最後更新
問題解決
WordPress 5.6+ PHP 5.6+ v2.8.0 上架:2021-01-20

內容簡介

這個免費外掛可以透過 IP 位址來取得您網站訪客的地理位置。
如果您需要根據訪客的城市或國家進行重導向,您可以使用簡單的界面實現。
您也可以詢問訪客的城市或國家是否被偵測到,然後將他重定向到特定頁面或添加查詢參數。

優點:

多語言結果

英語
中文
法語
俄語
德語
西班牙語
日語
葡萄牙語

高速取得位置(~20 毫秒)
可透過 PHP 或 JavaScript 進行重導向
將 geo-location 結果保存到訪客會話
簡單的代碼使用
帶有模擬 IP 位址的開發者模式
爬蟲篩選器

JSON API 供獨立開發使用

無限的重導向設置

選項:詢問重導向問題
選項:每次會話僅重導向一次
選項:始終重導向

簡單的後端使用:

取得城市 <?php foxlis_geo()->getCity(); ?>
取得國家 <?php foxlis_geo()->getCountry(); ?>
取得洲 <?php foxlis_geo()->getContinent(); ?>
取得細分 <?php foxlis_geo()->getSubdivisions(); ?>
取得準確度半徑 <?php $locationEntity = foxlis_geo()->getLocation(); $accuracyRadius = $locationEntity->getAccuracyRadius(); ?>
取得緯度 <?php $locationEntity = foxlis_geo()->getLocation(); $latitude = $locationEntity->getLatitude(); ?>
取得經度 <?php $locationEntity = foxlis_geo()->getLocation(); $longitude = $locationEntity->getLongitude(); ?>
取得時區 <?php $locationEntity = foxlis_geo()->getLocation(); $timeZone = $locationEntity->getTimeZone(); ?>

使用 URL 路徑通過 JSON API 獲取訪客位置:/wp-json/foxlis-geo/v1/data/

地理位置重導向視頻教程:

榮譽鳴謝

此外掛使用了 Foxlis Geo API Foxlis Geo API

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.8.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Foxlis Geo」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This free plug-in allows you to get your website visitor’s geo-location by an ip-address.
If you need to redirect your visitor based on his city or country you can do that by using simple interface.
Also you can ask is visitor’s city or country like detected and forward him to specific page or add query params.
Advantages:

Multi-language result

English
Chinese
French
Russian
German
Spanish
Japanese
Portuguese

High speed getting location (~20 ms)
Redirect by PHP or JavaScript
Save geo-location results to visitor session
Simple code usage
Developer mode with fake ip-address
Bots filter

JSON API for independent developing

Unlimited redirect settings

Option: Ask a question for redirect
Option: Redirect only one time per session
Option: Redirect always

Simple backend usage:

Get city getCity(); ?>
Get country getCountry(); ?>
Get continent getContinent(); ?>
Get subdivisions getSubdivisions(); ?>
Get accuracy radius getLocation(); $accuracyRadius = $locationEntity->getAccuracyRadius(); ?>
Get latitude getLocation(); $latitude = $locationEntity->getLatitude(); ?>
Get longitude getLocation(); $longitude = $locationEntity->getLongitude(); ?>
Get time zone getLocation(); $timeZone = $locationEntity->getTimeZone(); ?>

Get visitor location by JSON API using URL-path: /wp-json/foxlis-geo/v1/data/
Redirect By Geo Location Video Tutorial:

Credits

This plug-in use Foxlis Geo API Foxlis Geo API

延伸相關外掛

文章
Filter
Apply Filters
Mastodon