WooCommerce FOMO Discount Generator WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/chris-jk/wc-fomo-discount/archive/refs/heads/master.zipGenerate limited quantity, time-limited discount codes with real-time countdown and email verification to create urgency and increase conversions.
Features
- ✅ Real-time counter updates - Shows live remaining codes
- ✅ Email verification system - Prevents fake submissions
- ✅ Social sharing buttons - Viral discount distribution
- ✅ AJAX-powered interface - Smooth, no-refresh experience
- ✅ Automatic email notifications - Welcome and reminder emails
- ✅ Admin dashboard - Complete email analytics and CSV exports
- ✅ Auto-updater system - Get updates automatically from GitHub
- ✅ SMTP email configuration - Reliable email delivery with popular providers
- ✅ Waitlist lead magnet - Capture emails when campaigns sell out
- ✅ Tiered discount system - Higher discounts for early claimers
- ✅ IP address limiting - Prevent multiple claims from same IP
- ✅ Rate limiting - Prevents abuse and spam
- ✅ Mobile responsive - Works perfectly on all devices
Installation
- Upload the plugin folder to
/wp-content/plugins/ - Activate the plugin through the 'Plugins' menu in WordPress
- Go to 'FOMO Discounts' in your admin menu
- Create your first campaign
- Use the shortcode
[fomo_discount id="CAMPAIGN_ID"]on any page
Auto-Updates Setup
To enable automatic updates from your GitHub repository:
- Upload your plugin to a GitHub repository
- Edit
wc-fomo-discount.phpline 66:new WCFD_Auto_Updater(__FILE__, 'YOUR_GITHUB_USERNAME', 'REPO_NAME', WCFD_VERSION); - Create releases in GitHub with version tags (e.g.,
v1.0.1) - WordPress will automatically check for updates every 6 hours
Creating Releases
- Push your code changes to GitHub
- Go to your repository → Releases → Create new release
- Tag version:
v1.0.1(increment as needed) - Title:
Version 1.0.1 - Describe your changes in the release notes
- Publish release
WordPress will automatically detect new releases and show update notifications in the admin area.
Usage
Creating Campaigns
- Go to FOMO Discounts in your WordPress admin
- Fill out the campaign form:
- Campaign Name: Internal reference
- Discount Type: Percentage or fixed amount
- Discount Value: The discount amount
- Total Codes: How many people can claim
- Code Validity: Hours until individual codes expire
- Scope: All products, specific products, or categories
Displaying Widgets
Use the shortcode anywhere:
[fomo_discount id="1"]
Email Analytics
- Go to FOMO Discounts → Email Leads
- View real-time statistics
- Filter by campaign
- Export email lists as CSV
- Track conversion rates
SMTP Email Configuration
- Go to FOMO Discounts → Email Settings
- Enable SMTP for reliable email delivery
- Configure your preferred email provider (Gmail, Outlook, SendGrid, Mailgun, etc.)
- Test email functionality with one-click test button
- Prevents emails from being flagged as spam
Waitlist Lead Magnet
When campaigns sell out, users see an engaging waitlist form instead of a dead end:
- Smart sold-out handling - Automatically shows waitlist form when codes run out
- Beautiful conversion form - Attractive design with clear benefits
- Email capture - Collects emails for future campaign notifications
- Confirmation emails - Sends welcome email to new waitlist subscribers
- Duplicate prevention - Prevents same email from joining multiple times
- Success messaging - Clear next steps and expectations
Tiered Discount System
Create urgency with decreasing discounts as codes are claimed:
- Tier 1: Highest discount for first X codes (e.g., 25% off first 50 codes)
- Tier 2: Medium discount for next Y codes (e.g., 15% off next 30 codes)
- Tier 3: Final discount for remaining codes (e.g., 10% off remaining)
- Real-time tier display - Shows current tier and urgency messaging
- Automatic tier transitions - Seamlessly moves between tiers as codes are claimed
IP Address Limiting
Prevent abuse while allowing legitimate multiple users:
- Per-IP limits - Set maximum claims per IP address (1-10+)
- Household-friendly - Configurable limits allow family members to claim
- Business-friendly - Higher limits for office environments
- Smart detection - Works with email verification to prevent gaming
Email Verification Flow
For Logged-In Users
- Instant discount code (trusted email from WordPress account)
- No verification needed
For Non-Logged-In Users
- User enters email address
- Receives verification email with secure link
- Clicks link to verify and claim discount
- Gets discount code and confirmation email
Security Features
- ✅ Nonce verification on all AJAX requests
- ✅ Rate limiting (5 attempts per hour per IP)
- ✅ Email verification for non-logged-in users
- ✅ Database transactions prevent race conditions
- ✅ Input sanitization and validation
- ✅ Secure token generation for verification links
Performance Features
- ✅ Database indexing for fast queries
- ✅ Transient caching for GitHub API calls
- ✅ Optimized AJAX with overlap prevention
- ✅ Smooth animations without DOM flickering
- ✅ Automatic cleanup of expired codes
Customization
Styling
Edit assets/frontend.css to customize the appearance.
Email Templates
Modify the email content in the send_verification_email() and process_discount_claim() methods.
Social Platforms
Add more social sharing platforms in the addSocialSharing() JavaScript function.
Changelog
Version 1.0.0
- Initial release
- Email verification system
- Real-time counter updates
- Social sharing integration
- Admin analytics dashboard
- Auto-updater system
- Complete security implementation
Support
For support and feature requests, please create an issue in the GitHub repository.
License
This plugin is licensed under the GPL v2 or later.
Releases
6 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.