Foxlis Geo
v2.8.0foxlis · 2021年1月21日 上架
Free! Get visitor's geo-location by ip-address. Redirect visitor by his city or country with smart options.
- 正在使用
- 10+
- 评分
- 1.0 / 5
- 累计下载
- 3,514
- 最近更新
- 2021年5月7日
1 条评价需要 WordPress 5.6+已测试到 5.7.22PHP 5.6+
贡献者
截图
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
<?php foxlis_geo()->getCity(); ?> - Get country
<?php foxlis_geo()->getCountry(); ?> - Get continent
<?php foxlis_geo()->getContinent(); ?> - Get subdivisions
<?php foxlis_geo()->getSubdivisions(); ?> - Get accuracy radius
<?php $locationEntity = foxlis_geo()->getLocation(); $accuracyRadius = $locationEntity->getAccuracyRadius(); ?> - Get latitude
<?php $locationEntity = foxlis_geo()->getLocation(); $latitude = $locationEntity->getLatitude(); ?> - Get longitude
<?php $locationEntity = foxlis_geo()->getLocation(); $longitude = $locationEntity->getLongitude(); ?> - Get time zone
<?php $locationEntity = foxlis_geo()->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