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

allow filtering of email template #185

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

Conversation

joeczucha
Copy link

All Submissions:

Changelog entry

ENHANCEMENT: Added the pmpro_approvals_member_approved_email_template and pmpro_approvals_member_denied_email_template filters.

These be used in conjunction with the pmproet_templates filter to create new templates in the PMP email templates screen and dynamically apply them to emails depending on - for example - the user level.

@andrewlimaza
Copy link
Collaborator

Hi @joeczucha

Thanks for contributing to the Paid Memberships Pro ecosystem.

It may be possible to use the pmpro_email_filter available in the core class to adjust any email right before sending - https://github.com/strangerstudios/paid-memberships-pro/blob/dev/classes/class.pmproemail.php#L208

I'm not sure if you tried this filter already, but do you have more information about these new filters and the need for them? It should be possible using the above filter mentioned but may require some work to get membership information.

Would love to hear from you. Thanks again!

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.

2 participants