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/sh-sabbir/easy-coupons/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Easy Coupons
A WordPress plugin to lock video with coupon code.
Usage
Requirements (with estimation)
- [x] Create a plugin called "Easy Coupons" with the following features:
- [x] As an admin, I should be able to bulk generate any quantity of randomly generated, unique 4 character alpha-numeric coupon codes (ex. f5Ba, 891d, etc.) - 3 hours
- [x] As an admin, I should be able to search and delete any individual coupon code - 1 hours
- [x] As an admin, I should be able to specify an expiry date when I generate coupon codes - 1 hours
- [x] As an admin, I should be able to bulk delete coupons based on expiry date - 1.5 hours
- [x] Create a page with 3 gated educational YouTube videos
- [x] As a visitor, to unlock and display a single video I should be able to enter a single valid coupon code (found in the database and future expiry) - 2 hours
- [x] As a visitor, I should receive an error message if I attempt to use the same coupon code more than once - 0.5 hours
- [x] As a visitor, I should continue to have access to a video after I enter a valid coupon code (even if I close the browser and return to the site) - 1 hours
- [x] As an admin, I should be able to see w