Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create A Unique Email For Membership Renewals in PMPro #261

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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