Title: Geolocation Detector for Gravity Forms
Author: David Davis
Published: <strong>2016 年 5 月 27 日</strong>
Last modified: 2019 年 8 月 10 日

---

搜索插件

![](https://ps.w.org/geolocation-detector-for-gravity-forms/assets/banner-772x250.
jpg?rev=1425257)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/geolocation-detector-for-gravity-forms/assets/icon-256x256.
png?rev=1425252)

# Geolocation Detector for Gravity Forms

 作者：[David Davis](https://profiles.wordpress.org/dcgws/)

[下载](https://downloads.wordpress.org/plugin/geolocation-detector-for-gravity-forms.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/geolocation-detector-for-gravity-forms/#description)
 * [评价](https://cn.wordpress.org/plugins/geolocation-detector-for-gravity-forms/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/geolocation-detector-for-gravity-forms/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/geolocation-detector-for-gravity-forms/#developers)

 [支持](https://wordpress.org/support/plugin/geolocation-detector-for-gravity-forms/)

## 描述

Provides a dynamic country detection for Gravity Forms . Requires GeoIP Detect Plugin.

#### Features

 * Provides a new Advanced Field named “Geolocation”
 * Creates 5 new filters, ipcountry, ipprovince, ipcity, iplongitude, iplatitude,
   iptimezone
 * Integrates with WordPress MU
 * Important: Gravity Forms (https://www.gravityforms.com) and GeoIP Detection (
   https://wordpress.org/plugins/geoip-detect/) should be installed and activated
   in order to use this plugin.

### Help

Please contact at us http://dcgws.com/contact/ for any question

## 屏幕截图

[⌊Advanced Settings for ipcountry⌉⌊Advanced Settings for ipcountry⌉[

Advanced Settings for ipcountry

[⌊Advanced Settings for ipcity⌉⌊Advanced Settings for ipcity⌉[

Advanced Settings for ipcity

[⌊Advanced Settings for ipprovince⌉⌊Advanced Settings for ipprovince⌉[

Advanced Settings for ipprovince

[⌊Advanced Settings for iplongitude⌉⌊Advanced Settings for iplongitude⌉[

Advanced Settings for iplongitude

[⌊Advanced Settings for iplatitude⌉⌊Advanced Settings for iplatitude⌉[

Advanced Settings for iplatitude

[⌊Advanced Settings for iptimezone⌉⌊Advanced Settings for iptimezone⌉[

Advanced Settings for iptimezone

[⌊Advanced Settings for ipcontinent⌉⌊Advanced Settings for ipcontinent⌉[

Advanced Settings for ipcontinent

## 安装

Follow the steps below to install the plugin.

 1. Upload the gf-country-detector directory to the /wp-content/plugins/ directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Add the Hidden fields as seen in screenshots.

## 评价

![](https://secure.gravatar.com/avatar/ef39df7f116d3406325c4ffb8054e76b41ad95ccd0c4c7ca2d91bc0bda751e6f?
s=60&d=retro&r=g)

### 󠀁[Excellent functionality and customer service](https://wordpress.org/support/topic/excellent-functionality-and-customer-service-3/)󠁿

 [papyrusdoc](https://profiles.wordpress.org/papyrusdoc/) 2021 年 1 月 6 日

This extension to Geo my WordPress was exactly what we were looking for and provides
very flexible ways to enable geolocation on the front end. I needed assistance with
a usage beyond the core of the plugin and the author was extremely helpful.

![](https://secure.gravatar.com/avatar/7fc6e69d3e2f39006ef139170019da7e58096c5f8b6175e5753e0629a382aa28?
s=60&d=retro&r=g)

### 󠀁[Great job](https://wordpress.org/support/topic/great-job-750/)󠁿

 [wisdomtree](https://profiles.wordpress.org/wisdomtree/) 2019 年 1 月 30 日

This little plugin provides a great add on to the gravity forms system allowing 
country and city to be extracted from the IP address. I use this now on all of my
forms in hidden fields to automatically assign leads to the correct salesperson 
and to also identify SPAM leads coming from Russia or other countries where we don’t
operate. Using gravity forms conditions, you can even stop form submissions being
passed to your CRM or even saving in the WP database. Great job.

![](https://secure.gravatar.com/avatar/ed24c199f9b562f623d660f8b4b005bbea1af38b79a1ed1c6384e4d968004d87?
s=60&d=retro&r=g)

### 󠀁[Useful bit of code, appears to work as advertised, even with 5.0](https://wordpress.org/support/topic/useful-bit-of-code-appears-to-work-as-advertised-even-with-5-0/)󠁿

 [navigating21](https://profiles.wordpress.org/navigating21/) 2018 年 12 月 8 日

Thought I would be review #2, as David deserves acknowledgement for this. The sparse
documentation is somewhat unclear and would likely confuse a few folks, so it would
be good to clarify that the key dependency plug in is the YellowTree (Benjamin Pick)
GeoIP Detection, which can be found here: https://wordpress.org/plugins/geoip-detect/
That’s the plugin that interacts with the Maxmind GeoIP2 free lookup table. David’s
work here is super handy for picking up the country/city (or just the IP address
if the city is intentionally obscured) on user submissions of Gravity Forms. Simple,
does one thing as stated and thus far (still testing with WP 5.0) appears not to
cause any conflicts 5 stars Good stuff David.

![](https://secure.gravatar.com/avatar/6d6f9c1d85929dcf9fcd4ec867a15802bd821bb23c8a8a99be9659fe3b976b1e?
s=60&d=retro&r=g)

### 󠀁[Works as expected](https://wordpress.org/support/topic/works-as-expected-230/)󠁿

 [David Davis](https://profiles.wordpress.org/dcgws/) 2016 年 9 月 3 日

Provides a dynamic country detection for Gravity Forms . Requires GeoIP Detect Plugin.
Works as expected.

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/geolocation-detector-for-gravity-forms/reviews/)

## 贡献者及开发者

「Geolocation Detector for Gravity Forms」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ David Davis ](https://profiles.wordpress.org/dcgws/)

[帮助将「Geolocation Detector for Gravity Forms」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/geolocation-detector-for-gravity-forms)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/geolocation-detector-for-gravity-forms/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/geolocation-detector-for-gravity-forms/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/geolocation-detector-for-gravity-forms/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/geolocation-detector-for-gravity-forms/)。

## 更新日志

#### 1.0.3

*Enhancement
 * Added ipcontinent

#### 1.0.2

 * Enhancements
    - Added ipprovince
    - Added iplatitude
    - Added iplongitude
    - Added iptimezone

#### 1.0.1

    ```
    * Bug Fixes
        * Updated to be compatible with latest version of GeoIP Detect
    ```

#### 1.0.0

    ```
    * Initial Commit
    ```

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**7 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/geolocation-detector-for-gravity-forms/)
 * 标签
 * [country ip](https://cn.wordpress.org/plugins/tags/country-ip/)[GeoIP](https://cn.wordpress.org/plugins/tags/geoip/)
   [GravityForms](https://cn.wordpress.org/plugins/tags/gravityforms/)
 *  [高级视图](https://cn.wordpress.org/plugins/geolocation-detector-for-gravity-forms/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/geolocation-detector-for-gravity-forms/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/geolocation-detector-for-gravity-forms/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/geolocation-detector-for-gravity-forms/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/geolocation-detector-for-gravity-forms/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/geolocation-detector-for-gravity-forms/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/geolocation-detector-for-gravity-forms/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/geolocation-detector-for-gravity-forms/reviews/)

## 贡献者

 *   [ David Davis ](https://profiles.wordpress.org/dcgws/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/geolocation-detector-for-gravity-forms/)