Auto Coupon Generate for Gravity Forms
Generate unique discount coupon codes automatically when a Gravity Form is submitted. Optionally email the code to the user.
Consider an alternative
Auto Coupon Generate for Gravit… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 7 months ago, and scores 38/100 on our health check.
- Small user base (10+ active installs)
- Very few reviews so far
- Only tested up to WordPress 6.9 (latest is 7.1)
Daily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Auto Coupon Generate for Gr… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| auto generate coupon | #31 |
| coupon | >100 |
| coupon code | >100 |
| generate coupon | #48 |
| gravity forms | >100 |
Version adoption
Share of active sites per release.
About Auto Coupon Generate for Gravity Forms
From the official readme · v1.2.0Description
Auto Coupon Generate for Gravity Forms lets you automatically create a unique discount coupon code every time a visitor submits a Gravity Form. The generated code is saved directly as a Gravity Forms coupon and can optionally be emailed to the user straight away – no manual work required.
A common use case is a two-step flow: a user fills out a registration or survey form, receives a unique coupon code by email, and then uses it on a subsequent order form to claim their discount.
Key Features
- Automatically generates a unique, random coupon code on every form submission.
- Coupon codes are saved directly to the Gravity Forms Coupons Add-On – no extra steps needed.
- Configurable code length, character set, and optional prefix so codes match your brand.
- Supports both flat (fixed amount) and percentage discount types.
- Set a minimum order value that must be met before the coupon applies.
- Control how many times each coupon can be used in total.
- Optional start date and expiration date for time-limited promotions.
- Built-in email notification – send the generated coupon code to the user’s email address automatically after submission. The email subject and body are fully customisable, and you can use the
{coupon_code}placeholder anywhere in the message body. - Coupon Log page in the WordPress admin showing a full history of every coupon generated, including the code, the form it came from, and the date it was created.
- Shipping is excluded from discount calculations by default – the discount applies to the order subtotal only.
- Secure: uses
random_int()for cryptographically safe code generation, proper nonce verification, and capability checks on all admin pages.
Requirements
- WordPress 5.2 or higher
- PHP 7.0 or higher
- Gravity Forms (any recent version)
- Gravity Forms Coupons Add-On (must be installed and active)
The plugin will check for these dependencies on activation and will not activate if either Gravity Forms or the Coupons Add-On is missing.
Configuration
After activating the plugin, go to Generate Coupon Setting in the WordPress admin menu. The settings page is divided into three sections.
Coupon Generate Form Settings
These settings control how coupon codes are generated and what discount they carry.
- Form ID – The ID of the Gravity Form that will trigger coupon generation on submission. To find your form ID, go to Forms in your WordPress admin; the ID is shown in the form list.
- Coupon Field ID – The ID of the field inside that form where the generated coupon code will be pre-populated (using the
gform_field_value_uuidfilter). This is typically a hidden field. - Coupon Length – The number of random characters in the coupon code (not counting any prefix). For example, a length of 8 with the prefix
SALE-would produce codes likeSALE-A3BX92KQ. - Coupon Code Prefix – Optional text to prepend to every generated code (e.g.
SUMMER-). Leave blank for no prefix. - Coupon Code Characters – The pool of characters used when generating the random part of the code. The default is
1234567890QWERTYUIOPASDFGHJKLZXCVBNM. You can narrow this down – for example, removing easily confused characters like0,O,1, andI. - Discount Type – Choose Percentage to deduct a percentage of the order total, or Flat to deduct a fixed amount.
- Discount Amount – The value of the discount. If Discount Type is Percentage, enter a number between 1 and 100. If Discount Type is Flat, enter the currency amount (e.g.
10for $10 off). - Max Usage – The maximum number of times the generated coupon can be used across all customers. Enter
1to make it single-use. - Minimum Price – The minimum order subtotal (excluding shipping) a customer must reach before the coupon becomes valid. Leave blank for no minimum.
- Start Date – The date from which the coupon becomes valid, in
MM/DD/YYYYformat. Leave blank to make it valid immediately. - Expiration Date – The date on which the coupon expires, in
MM/DD/YYYYformat. Leave blank for no expiry.
Coupon Usage Form Settings
- Form ID – The ID of the Gravity Form where customers will enter and apply their coupon code (your checkout or order form). The generated coupon will be scoped to this form inside the Gravity Forms Coupons Add-On.
Email Notification Settings
These settings are all optional. If you do not enable email notifications, coupons are still generated and saved – users just will not receive an automatic email.
- Email Field ID – The ID of the field in the coupon-generate form that holds the user’s email address. The plugin will read the submitted value from this field and send the notification to that address.
- Email Subject – The subject line of the notification email. Default:
Your Coupon Code. - Email Body – The body of the notification email. Use the placeholder
{coupon_code}anywhere in the text and it will be replaced with the actual generated code before sending. Default message is provided but you can customise it freely. - Enable Email – Check this box to activate automatic email sending. When unchecked, no email is sent regardless of the other email settings.
The email is sent using WordPress’s built-in wp_mail() function. Delivery depends on your server’s mail configuration or any SMTP plugin you have installed.
Coupon Log
Go to Generate Coupon Setting > Coupon Log in the WordPress admin to see a table of every coupon that has been generated by the plugin. The table shows the coupon code, the form it was generated from, and the date and time it was created. The log displays the 100 most recent entries in reverse chronological order.
Installation
From within WordPress
- Go to Plugins > Add New in your WordPress admin.
- Search for Auto Coupon Generate for Gravity Forms.
- Click Install Now, then Activate.
- Go to Generate Coupon Setting in the left-hand admin menu.
- Fill in the required fields and click Save Settings.
Manually
- Download the plugin zip file.
- Extract it and upload the
gf-auto-coupon-generatefolder to/wp-content/plugins/. - Go to Plugins in your WordPress admin and activate Auto Coupon Generate for Gravity Forms.
- Go to Generate Coupon Setting in the left-hand admin menu.
- Fill in the required fields and click Save Settings.
Changelog
1.2.0
- Feature: Email notification – automatically send the generated coupon code to the user’s email address after form submission. Subject, body, and the field used for the email address are all configurable. Use
{coupon_code}in the body as a placeholder. - Feature: Coupon Log – new admin sub-menu page under Generate Coupon Setting showing a full history of all coupons generated by the plugin, including coupon code, form ID, and date generated.
1.1.0
- Security: Fixed inverted nonce validation in the admin AJAX handler.
- Security: Assigned the
wp_unslash()result before reading posted values. - Security: Replaced
rand()withrandom_int()for cryptographically safe coupon code generation. - Security: Changed admin page capability from
administratortomanage_options. - Fix: Added a max-attempt safeguard (100 attempts) to coupon code generation with graceful failure if a unique code cannot be produced.
- Fix: Replaced deprecated
rg_lead_detailtable references with the moderngf_entry_metatable. - Fix: Added admin settings for start date, expiration date, code prefix, and code character set.
- Fix: Made the minimum price field optional in JavaScript validation.
- Fix: Corrected output escaping in the admin settings UI for all attribute contexts.
- Fix: Added plugin activation dependency checks – plugin will not activate without Gravity Forms and the Coupons Add-On.
- Fix: Expanded uninstall.php to remove all plugin options on deletion.
1.0.2
- Fix: Assets load issue.
1.0.1
- Readme update.
1.0.0
- Initial release.
Screenshots
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
FAQ
Auto Coupon Generate for Gravity Fo…: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Auto Coupon Generate for Gravit… free?
Yes. Auto Coupon Generate for Gravit… is free to download and use from the official WordPress.org plugin directory.
Is Auto Coupon Generate for Gravit… safe to use in 2026?
Auto Coupon Generate for Gravit… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 7 months ago, and scores 38/100 on our health check.
How many websites use Auto Coupon Generate for Gravit…?
Auto Coupon Generate for Gravit… is active on 10+ WordPress websites and has been downloaded 1,853 times since it launched in October 2022. It was downloaded 61 times in the last 30 days.
Does Auto Coupon Generate for Gravit… work with WordPress 7.1?
Auto Coupon Generate for Gravit… is officially tested up to WordPress 6.9.12, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Auto Coupon Generate for Gravit… need?
Auto Coupon Generate for Gravit… requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Auto Coupon Generate for Gravit… last updated?
The latest version, 1.2.0, was released on April 13, 2026 (7 months ago).
Who makes Auto Coupon Generate for Gravit…?
Auto Coupon Generate for Gravit… is developed and maintained by Krishna Gajera.
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
