WordPress Expert — Hard
Key points
- pre_wp_mail is triggered before email sending
- It can intercept emails for testing purposes
- Returning a non-null value from a callback stops the email from being sent
- Useful for redirecting emails in staging environments
Ready to go further?
Related questions
