strangerstudios / pmpro-cancel-on-next-payment-date

Change membership cancellation in Paid Memberships Pro to set expiration for next payment date instead of cancelling immediately.
https://www.paidmembershipspro.com/add-ons/cancel-on-next-payment-date
8 stars 8 forks source link

Adding new filter to email template data to override core PMPro. #23

Closed kimcoleman closed 3 years ago

kimcoleman commented 3 years ago

All Submissions:

Changes proposed in this Pull Request:

The core PMPro logic to populate template variables !!startdate!! and !!enddate!! for the admin cancel email were not displaying any information for the case where a user cancels and has a future expiration date. This used to work fine when we weren't "skipping the cancel" and the core PMPro logic could find a row with a cancel-type status in the pmpro_membership_users_table.

This logic may need to be updated in the Auto-Renewal Checkbox Add On as well.

Changelog entry

Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.