Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
strangerstudios / PMPExpirationDate
Last active Jul 4, 2019 — forked from chrislema/PMPExpirationDate
Set a specific expiration date for a Membership Level.
View PMPExpirationDate
/*
For a level to expire on a certain date.
(Note, this will need to be tweaked to work with PayPal Standard.)
*/
function my_pmpro_checkout_level_specific_expiration($level)
{
//ignore renewals (they will be pushed out one payment period)
if(pmpro_hasMembershipLevel($level->id))
return $level;
You can’t perform that action at this time.