Open donmhico opened 10 months ago
Create a new hook that allows filtering of which emails to log but still sends it. The existing hook wp_mail_logging_before_log_email does allow emails not to be logged, but it will also prevent the email to be sent.
wp_mail_logging_before_log_email
See https://wordpress.org/support/topic/exclude-mails-by-address-of-recipment/.
https://wordpress.org/support/topic/exclude-certain-e-mails/
Description
Create a new hook that allows filtering of which emails to log but still sends it. The existing hook
wp_mail_logging_before_log_email
does allow emails not to be logged, but it will also prevent the email to be sent.Reference
See https://wordpress.org/support/topic/exclude-mails-by-address-of-recipment/.