strangerstudios/pmpro-addon-packages

Expiration Dates and Discount Codes for PMPro Addon

Closed this issue · 2 comments

I am using the PMPro Addon with PMPro on a CEU site. We are using the PMPro Addon for students to purchase individual courses (i.e. access to one page with assignments and links to handouts and exams). I downloaded some code for the expiration date but only got one line to insert into the PMPro-Customizations:

I think I finally figured it out. I added the define(‘PMPROAP_EXP_DAYS’, 90); to my wp-config.php file in my root directory. Based on my understanding of the readme.txt file this 90 day expiration date will now globally apply to all of my single page purchases. Please let me know if I am correct. Thanks

You can put that constant definition in your wp-config and it should expire all addon page purchases in 90 days, yes.

No way without code to add discounts to the addons.

For future reference, for these kinds of questions it is best to use our member forums at http://www.paidmembershipspro.com/support/. The issues here are best for bugs in the code or feature requests and discussion.