Title: Iran Phone Format For GForms
Author: hafezbahari
Published: <strong>2025 年 10 月 26 日</strong>
Last modified: 2025 年 12 月 24 日

---

搜索插件

![](https://ps.w.org/iran-phone-format-for-gforms/assets/banner-772×250.png?rev=
3384688)

![](https://s.w.org/plugins/geopattern-icon/iran-phone-format-for-gforms_001c42.
svg)

# Iran Phone Format For GForms

 作者：[hafezbahari](https://profiles.wordpress.org/hafezbahari/)

[下载](https://downloads.wordpress.org/plugin/iran-phone-format-for-gforms.1.0.4.zip)

 * [详情](https://cn.wordpress.org/plugins/iran-phone-format-for-gforms/#description)
 * [评价](https://cn.wordpress.org/plugins/iran-phone-format-for-gforms/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/iran-phone-format-for-gforms/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/iran-phone-format-for-gforms/#developers)

 [支持](https://wordpress.org/support/plugin/iran-phone-format-for-gforms/)

## 描述

The **Iran Phone Format for Gravity Forms** plugin adds a new “Iran” option to the
phone format settings within the Gravity Forms Phone field.
 This plugin supports
both Persian and English digits, automatically normalizing the input before validation
to ensure accuracy.

**Features:**
 – Adds an “Iran” phone format option to Gravity Forms. – Uses Regex-
based validation for mobile numbers starting with “09”. – Automatically converts
Persian digits to English before validation. – Seamlessly works with both Persian
and English numeric inputs. – Features a translatable error message for easy localization.

Example of a valid number: `09123456789` or `۰۹۱۲۳۴۵۶۷۸۹`

### Video Demonstration

## 屏幕截图

[⌊The new "Iran" phone format option in the Gravity Forms field settings.⌉⌊The new"
Iran" phone format option in the Gravity Forms field settings.⌉[

The new “Iran” phone format option in the Gravity Forms field settings.

[⌊The error message displayed when an invalid number is entered.⌉⌊The error message
displayed when an invalid number is entered.⌉[

The error message displayed when an invalid number is entered.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/iran-phone-format-for-gforms/`
    directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Edit your desired form in Gravity Forms, add a ‘Phone’ field, and set its ‘Phone
    Format’ to ‘Iran’.
 4. Save the form and test it by entering a valid Iranian mobile number.

## 常见问题

### Does this plugin work without Gravity Forms?

No, this plugin is an add-on for Gravity Forms and requires it to be installed and
activated.

### Can the error message be changed?

Yes, the error message is defined using the `__()` function, making it fully translatable
through standard WordPress methods.

### Does it support Persian digits?

Yes, the plugin automatically converts Persian digits to their English equivalents
before performing validation.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Iran Phone Format For GForms」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ hafezbahari ](https://profiles.wordpress.org/hafezbahari/)
 *   [ mrnargil ](https://profiles.wordpress.org/mrnargil/)

[帮助将「Iran Phone Format For GForms」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/iran-phone-format-for-gforms)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.4

Tested to WordPress v6.9

#### 1.0.3

This is a recommended security and stability update. All functions have been prefixed
to prevent potential conflicts with other plugins.

#### 1.0.2

IMPROVEMENT: Prefixed all functions with `ipffg_` to prevent conflicts with other
plugins, following WordPress coding standards.

#### 1.0.1

Readme.txt file Added.

#### 1.0.0

 * Initial release.
 * Added Iran phone number format to Gravity Forms.
 * Implemented support for both Persian and English digits.
 * Included Regex-based validation.

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**10 月前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.9**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/iran-phone-format-for-gforms/)
 * 标签
 * [GravityForms](https://cn.wordpress.org/plugins/tags/gravityforms/)[گرویتی فرم](https://cn.wordpress.org/plugins/tags/%da%af%d8%b1%d9%88%db%8c%d8%aa%db%8c-%d9%81%d8%b1%d9%85/)
 *  [高级视图](https://cn.wordpress.org/plugins/iran-phone-format-for-gforms/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/iran-phone-format-for-gforms/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/iran-phone-format-for-gforms/reviews/)

## 贡献者

 *   [ hafezbahari ](https://profiles.wordpress.org/hafezbahari/)
 *   [ mrnargil ](https://profiles.wordpress.org/mrnargil/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/iran-phone-format-for-gforms/)