Title: Gravity Forms &#8211; OTP Verification (SMS/EMAIL)
Author: Pigment Development
Published: <strong>2025 年 4 月 3 日</strong>
Last modified: 2026 年 3 月 12 日

---

搜索插件

![](https://ps.w.org/gravity-otp-verification/assets/banner-772x250.png?rev=3480915)

![](https://ps.w.org/gravity-otp-verification/assets/icon-256x256.png?rev=3480915)

# Gravity Forms – OTP Verification (SMS/EMAIL)

 作者：[Pigment Development](https://profiles.wordpress.org/pigmentdev/)

[下载](https://downloads.wordpress.org/plugin/gravity-otp-verification.3.2.0.zip)

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

 [支持](https://wordpress.org/support/plugin/gravity-otp-verification/)

## 描述

**Gravity Forms – OTP Verification** allows you to add **One-Time Password (OTP)
verification** to Gravity Forms, ensuring that users enter a valid mobile number
or email address before submitting a form. It helps prevent spam, fake submissions,
and ensures real user authentication.

### **Key Features:**

 * 🔒 **Secure Mobile Verification** – Ensures users verify their phone numbers 
   before submitting.
 * ✅ **Seamless Gravity Forms Integration** – Works with all versions of Gravity
   Forms without conflicts.
 * 🌎 **Supports Persian, Arabic & English Numbers** – Converts and validates all
   number formats.
 * 📡 **Flexible SMS Gateway Support** – Connects to multiple SMS providers via 
   built-in integrations or custom hooks.
 * ⚙️ **Easy Setup** – Configure in just a few clicks with user-friendly settings.

### Features

 * Add an Mobile OTP field to **any Gravity Form**.
 * Prevent form submission **until mobile verification is successful**.
 * Support for **multiple SMS gateways** including custom integrations.
 * Fully compatible with **Gravity Forms’ conditional logic**.
 * Users can **resend OTP** with a cooldown limit (e.g., **3 attempts, 90 seconds
   each**).
 * Supports **hooks & filters** to extend functionality.
 * Works across **all WordPress and WooCommerce sites**.

### Supported SMS Gateways

The plugin supports direct integration with popular SMS gateways as well as widely-
used SMS plugins. You can send OTP messages using your preferred SMS provider or
through supported SMS plugins for maximum flexibility.

 * **Plugin: WSMS (formerly WP SMS) (over 300 gateways)**
 * **Plugin: Persian WooCommerce SMS (over 100 gateways)**
 * **Iranian Gateway: SMS.ir (v1/v2)**
 * **Iranian Gateway: FarazSMS**
 * **Iranian Gateway: IPPanel**

### Supported Email Gateways

The plugin uses the default WordPress email sending function (`wp_mail`). This means
you are free to use **any email service** you want—whether it’s your web host’s 
built-in mail, your WordPress site’s configured SMTP settings, or a third-party 
SMTP plugin. Just configure your preferred email service, and OTP emails will be
sent using that method.

You can also fully customize the OTP email: set a custom sender name, sender address,
subject, and modify the email template as HTML directly from the plugin settings.

Additionally, you can add **any other SMS gateway** via **WordPress hooks and filters**.

### How to Setup the Plugin

 1. **Install & Activate** the plugin.
 2. **Go to Gravity Forms** and create a form.
 3. **Add the OTP Field** from the field settings.
 4. **Configure your SMS Gateway** in plugin settings.
 5. **Save your form**, and OTP verification will be active.

### Third-Party & External Resources Used

This plugin utilizes the following third-party libraries to enhance functionality:

 * **Tippy.js**
 * **Select2.js**
 * **Datatables**
 * **jQuery Confirm**
 * **jQuery Repeater**
 * **Font Awesome v.7** (Used only for icons in the settings panel)

### Disclaimer and Warranty

This plugin is provided **“as is”** without any warranties, express or implied. 
While every effort has been made to ensure reliability and security, the developers
are not responsible for any issues arising from its use. Always test in a **staging
environment** before deploying to production.

### Contribution and Support

We welcome contributions to improve the plugin! If you have feature requests, bug
reports, or suggestions, please create a GitHub issue or pull request.

Github Repository: [https://github.com/pigment-dev/gravity-otp-verification](https://github.com/pigment-dev/gravity-otp-verification)

For support, contact us at **[support (at) pigment (dot) dev](https://cn.wordpress.org/plugins/gravity-otp-verification/support@pigment.dev?output_format=md)**.

## 屏幕截图

[⌊Gravity Form > newly added OTP Field⌉⌊Gravity Form > newly added OTP Field⌉[

Gravity Form > newly added **OTP Field**

[⌊Gravity Form > OTP Field Settings⌉⌊Gravity Form > OTP Field Settings⌉[

Gravity Form > **OTP Field** Settings

[⌊Sample OTP Email preview in Gmail⌉⌊Sample OTP Email preview in Gmail⌉[

Sample OTP Email preview in Gmail

[⌊Sample Form with Mobile OTP Field⌉⌊Sample Form with Mobile OTP Field⌉[

Sample Form with Mobile OTP Field

[⌊Mobile OTP Field (Waiting for User to enter code)⌉⌊Mobile OTP Field (Waiting for
User to enter code)⌉[

Mobile OTP Field (Waiting for User to enter code)

[⌊Settings > General⌉⌊Settings > General⌉[

Settings > General

[⌊Settings > Mobile > Sample Gateway Setting⌉⌊Settings > Mobile > Sample Gateway
Setting⌉[

Settings > Mobile > Sample Gateway Setting

[⌊Settings > Mobile > WP-SMS Gateway Setting⌉⌊Settings > Mobile > WP-SMS Gateway
Setting⌉[

Settings > Mobile > WP-SMS Gateway Setting

[⌊Settings > Email Setting⌉⌊Settings > Email Setting⌉[

Settings > Email Setting

[⌊Settings > Translation Panel⌉⌊Settings > Translation Panel⌉[

Settings > Translation Panel

[⌊Settings > String Replace Panel⌉⌊Settings > String Replace Panel⌉[

Settings > String Replace Panel

[⌊Sent OTPs Log⌉⌊Sent OTPs Log⌉[

Sent OTPs Log

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/` directory, or install the
    plugin through the **WordPress plugins** screen directly.
 2. Activate the plugin through the **Plugins** screen in WordPress.
 3. Go to **Gravity Forms > Your Form > Add OTP Field**.
 4. Configure your **SMS Gateway** in the plugin settings.
 5. Save your form, and you’re good to go!

## 常见问题

### How does OTP Verification work?

Once a user enters their mobile number or email address, they receive an **OTP Code**.
They must **enter the correct OTP** before submitting the form.

### Can I use my own SMS provider?

Yes! The plugin supports **multiple SMS gateways**, and you can **add your own**
via hooks.

### Does this plugin support Persian & Arabic numbers?

Yes! The plugin **automatically converts** Persian and Arabic numerals to English
before validation.

### Does it work with all Gravity Forms versions?

Yes! It is tested and compatible with **all recent Gravity Forms versions**.

### How can I contribute to this plugin?

You can help us improve our works by committing your changes to [pigment-dev/gravity-otp-verification](https://github.com/pigment-dev/gravity-otp-verification)

### How can I report security bugs?

You can report security bugs through the Patchstack Vulnerability Disclosure Program.
The Patchstack team helps validate, triage and handle any security vulnerabilities.
[Report a security vulnerability.](https://patchstack.com/database/vdp/db127ab7-a400-46ce-8355-be4d075e7ff8)

## 评价

此插件暂无评价。

## 贡献者及开发者

「Gravity Forms – OTP Verification (SMS/EMAIL)」是开源软件。 以下人员对此插件做出
了贡献。

贡献者

 *   [ Pigment Development ](https://profiles.wordpress.org/pigmentdev/)
 *   [ Amirhossein Hosseinpour ](https://profiles.wordpress.org/amirhpcom/)

[帮助将「Gravity Forms – OTP Verification (SMS/EMAIL)」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/gravity-otp-verification)

### 对开发感兴趣吗?

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

## 更新日志

For the full changelog, please view the [Github Repository](https://github.com/pigment-dev/gravity-otp-verification?tab=readme-ov-file#changelog)

#### v3.2.0 | 2026-03-12 | 1404-12-21

 * Fixed WP-SMS gateway integration for better compatibility with the latest version
   of the plugin.
 * Fixed Critical error regarding WooCommerce SMS gateway integration.
 * Fixed Unexpected Error on Sending Ajax form (if Debug enabled)
 * Fixed Not Verifying OTPs correctly in some cases due to type mismatch
 * Enhanced Error handling with use of Query Monitor plugin.

## 额外信息

 *  版本 **3.2.0**
 *  最后更新：**3 月前**
 *  活跃安装数量 **80+**
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/gravity-otp-verification/)
 * 标签
 * [gravity forms](https://cn.wordpress.org/plugins/tags/gravity-forms/)[phone verification](https://cn.wordpress.org/plugins/tags/phone-verification/)
   [SMS Authentication](https://cn.wordpress.org/plugins/tags/sms-authentication/)
 *  [高级视图](https://cn.wordpress.org/plugins/gravity-otp-verification/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/gravity-otp-verification/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/gravity-otp-verification/reviews/)

## 贡献者

 *   [ Pigment Development ](https://profiles.wordpress.org/pigmentdev/)
 *   [ Amirhossein Hosseinpour ](https://profiles.wordpress.org/amirhpcom/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/gravity-otp-verification/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://pigment.dev/contact/)