{"id":254530,"date":"2025-10-26T10:09:28","date_gmt":"2025-10-26T10:09:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/iran-phone-format-for-gforms\/"},"modified":"2025-12-24T04:57:00","modified_gmt":"2025-12-24T04:57:00","slug":"iran-phone-format-for-gforms","status":"publish","type":"plugin","link":"https:\/\/si.wordpress.org\/plugins\/iran-phone-format-for-gforms\/","author":17934749,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.4","stable_tag":"1.0.4","tested":"6.9.4","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Iran Phone Format For GForms","header_author":"Hafez Bahari","header_description":"Adds Iranian mobile phone number format and validation to Gravity Forms. Supports both Persian and English digits.","assets_banners_color":"001c42","last_updated":"2025-12-24 04:57:00","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/hafezbahari.ir","rating":0,"author_block_rating":0,"active_installs":0,"downloads":258,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"hafezbahari","date":"2025-10-26 10:25:32"},"1.0.1":{"tag":"1.0.1","author":"hafezbahari","date":"2025-10-26 10:25:32"},"1.0.2":{"tag":"1.0.2","author":"hafezbahari","date":"2025-10-26 10:25:32"},"1.0.3":{"tag":"1.0.3","author":"hafezbahari","date":"2025-10-26 19:24:25"},"1.0.4":{"tag":"1.0.4","author":"hafezbahari","date":"2025-12-24 04:57:00"}},"upgrade_notice":{"1.0.4":"<p>Tested to WordPress v6.9<\/p>","1.0.3":"<p>This is a recommended security and stability update. All functions have been prefixed to prevent potential conflicts with other plugins.<\/p>","1.0.2":"<p>This is a recommended security and stability update. All functions have been prefixed to prevent potential conflicts with other plugins.<\/p>","1.0.1":"<p>Readme.txt file Added.<\/p>","1.0.0":"<p>The first version of the plugin \u2013 Adds Iranian phone format validation to Gravity Forms.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":{"banner-772\u00d7250.png":{"filename":"banner-772\u00d7250.png","revision":3384688,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2","1.0.3","1.0.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3384688,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3384688,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"The new \"Iran\" phone format option in the Gravity Forms field settings.","2":"The error message displayed when an invalid number is entered."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[249741,9775,249742,179191],"plugin_category":[42],"plugin_contributors":[249743,249758],"plugin_business_model":[],"class_list":["post-254530","plugin","type-plugin","status-publish","hentry","plugin_tags-gravity-forms-iran-phone","plugin_tags-gravityforms","plugin_tags-persian-digits","plugin_tags-179191","plugin_category-contact-forms","plugin_contributors-hafezbahari","plugin_contributors-mrnargil","plugin_committers-hafezbahari"],"banners":{"banner":"https:\/\/ps.w.org\/iran-phone-format-for-gforms\/assets\/banner-772\u00d7250.png?rev=3384688","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/iran-phone-format-for-gforms_001c42.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/iran-phone-format-for-gforms\/assets\/screenshot-1.png?rev=3384688","caption":"The new \"Iran\" phone format option in the Gravity Forms field settings."},{"src":"https:\/\/ps.w.org\/iran-phone-format-for-gforms\/assets\/screenshot-2.png?rev=3384688","caption":"The error message displayed when an invalid number is entered."}],"raw_content":"<!--section=description-->\n<p>The <strong>Iran Phone Format for Gravity Forms<\/strong> plugin adds a new \"Iran\" option to the phone format settings within the Gravity Forms Phone field.\nThis plugin supports both Persian and English digits, automatically normalizing the input before validation to ensure accuracy.<\/p>\n\n<p><strong>Features:<\/strong>\n- Adds an \"Iran\" phone format option to Gravity Forms.\n- Uses Regex-based validation for mobile numbers starting with \"09\".\n- Automatically converts Persian digits to English before validation.\n- Seamlessly works with both Persian and English numeric inputs.\n- Features a translatable error message for easy localization.<\/p>\n\n<p>Example of a valid number: <code>09123456789<\/code> or <code>\u06f0\u06f9\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9<\/code><\/p>\n\n<h3>Video Demonstration<\/h3>\n\n<p>[youtube https:\/\/www.youtube.com\/watch?v=Pk6KkOr3ID0]<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/iran-phone-format-for-gforms\/<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Edit your desired form in Gravity Forms, add a 'Phone' field, and set its 'Phone Format' to 'Iran'.<\/li>\n<li>Save the form and test it by entering a valid Iranian mobile number.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='does%20this%20plugin%20work%20without%20gravity%20forms%3F'><h3>Does this plugin work without Gravity Forms?<\/h3><\/dt>\n<dd><p>No, this plugin is an add-on for Gravity Forms and requires it to be installed and activated.<\/p><\/dd>\n<dt id='can%20the%20error%20message%20be%20changed%3F'><h3>Can the error message be changed?<\/h3><\/dt>\n<dd><p>Yes, the error message is defined using the <code>__()<\/code> function, making it fully translatable through standard WordPress methods.<\/p><\/dd>\n<dt id='does%20it%20support%20persian%20digits%3F'><h3>Does it support Persian digits?<\/h3><\/dt>\n<dd><p>Yes, the plugin automatically converts Persian digits to their English equivalents before performing validation.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.4<\/h4>\n\n<p>Tested to WordPress v6.9<\/p>\n\n<h4>1.0.3<\/h4>\n\n<p>This is a recommended security and stability update. All functions have been prefixed to prevent potential conflicts with other plugins.<\/p>\n\n<h4>1.0.2<\/h4>\n\n<p>IMPROVEMENT: Prefixed all functions with <code>ipffg_<\/code> to prevent conflicts with other plugins, following WordPress coding standards.<\/p>\n\n<h4>1.0.1<\/h4>\n\n<p>Readme.txt file Added.<\/p>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<li>Added Iran phone number format to Gravity Forms.<\/li>\n<li>Implemented support for both Persian and English digits.<\/li>\n<li>Included Regex-based validation.<\/li>\n<\/ul>","raw_excerpt":"Adds Iranian mobile phone format and validation to the Gravity Forms Phone field, with support for Persian and English digits.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/254530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=254530"}],"author":[{"embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hafezbahari"}],"wp:attachment":[{"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=254530"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=254530"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=254530"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=254530"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=254530"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=254530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}