Send more than one customized “membership expiration warning” email to users with PMPro.
By default, Paid Memberships Pro will send members an email notice 7 days prior to their expiration date. Use this add on to send notifications at additional intervals. It also allows you to set a custom email message for each additional interval (i.e. send a custom message at the 30 day and 60 days from expiration point).
NOTE: The first few times this code runs, it will send expiration notices to members expiring up to and including each level. For example, if 30, 60, 90 day notices are set up: