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

Action hook for test emails #3035

Open
ipokkel opened this issue Jul 1, 2024 · 0 comments
Open

Action hook for test emails #3035

ipokkel opened this issue Jul 1, 2024 · 0 comments

Comments

@ipokkel
Copy link
Member

ipokkel commented Jul 1, 2024

Is your feature request related to a problem? Please describe.
When debugging emails it is difficult to determine whether it is a test email being sent from the Memberships > Settings > Email Templates page.

Describe the solution you'd like
It would be helpful to be able to hook into the pmpro_email_templates_send_test() function, e.t. pmpro_sending_test_email, that includes the PMPro email object to assist with identifying whether it is a test email being sent and modify the data and body content for the test email.

Describe alternatives you've considered
hook into the pmpro_email_filter and strpos check for the string THIS IS A TEST EMAIL

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

No branches or pull requests

1 participant