Overview
Item description
Set a specific expiration date (e.g. 2013-12-31) for a PMPro membership level or discount code. This expiration date will override any expiration period set on the level.
This code gist has been built into a full-fledged plugin that is available now on GitHub. Using this plugin as is will add an additional field to the edit level and edit discount code pages allowing you to set a specific expiration date. So instead of “expire in 30 days” you can set the level to “expire on 2015-01-01”.
The symbols Y and Y2 can be swapped in to represent the current year and next year respectively. So to expire on January 1st next year, use: Y2-01-01
The symbols M and M2 can be swapped in to represent the current month and next month respectively. So to expire on the 1st of the next month, use: Y-M2-01
Viewing this code on GitHub may also give you insight into writing custom rules for expiration dates.
What's included
- The full pluginEvery file from the developer's release, in one zip.
- Unlimited sitesInstall it on your own and your clients' sites.
- GPL licensedFree to use, study and modify.
- No paymentFree to download, no card needed.
How to install
- 1Download the zip file from this page.
- 2In WordPress, go to Plugins → Add New → Upload Plugin.
- 3Choose the zip, click Install Now, then Activate.
Questions
Is this the developer's own release?
Yes. It is the release published by the original developer, redistributed under the GNU General Public License. The GPL allows anyone to share and resell the code.
Do I get a license key or automatic updates?
No. License keys, one-click updates and support come from the developer's own paid plans. To update, download the newer version here when it is listed and install it over the old one.
Can I use it on more than one site?
Yes. The GPL puts no limit on the number of sites, including client sites.
Why is it free?
During our launch every download that is available on GPL Store is free. Nothing is charged and no card is asked for.