Skip to content

Conversation

@MaximilianoRicoTabo
Copy link
Contributor

@MaximilianoRicoTabo MaximilianoRicoTabo commented Feb 5, 2025

  • Filter emails supposed to sent through pmpro_email_filter filter
  • Bail if it's not a renewal and skip admin emails
  • Create a child of PMPro_Email_Template class called PMPro_Email_Template_Renew
  • Instantiate class above and assign its values to the "renewal" filtered email
  • Add the email template to the list of email templates hooking into pmpro_email_templates filter

tested and tweaked PR #225 from @MaryOJob

Screenshot 2025-02-05 at 7 18 03 PM Screenshot 2025-02-05 at 7 18 18 PM Screenshot 2025-02-05 at 7 18 26 PM Screenshot 2025-02-05 at 7 19 02 PM

 * Filter emails supposed to sent through pmpro_email_filter filter
 * Bail if it's not a renewal and skip admin emails
 * Create a child of PMPro_Email_Template class called PMPro_Email_Template_Renew
 * Instantiate class above and assign its values to the "renewal" filtered email
 * Add the email template to the list of email templates hooking into pmpro_email_templates filter
@MaximilianoRicoTabo MaximilianoRicoTabo changed the title Create Create A Unique Email For Membership Renewals in PMPro Create A Unique Email For Membership Renewals in PMPro Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant