I want to modularly disable emails sent out by WordPress so I can replace them with my own custom emails when necessary.
I tried googling for a list of filter hooks, but couldn't find anything as comprehensive as I would like. I found these two so far:
/**
* Disable default WordPress emails.
*/
add_filter( 'send_password_change_email', '__return_false' );
add_filter( 'send_email_change_email', '__return_false' );
Is there a resource or a list of all filter hooks that WordPress uses to send emails?
Update
Another option, as mentioned in kirillrocks's answer is to completely disable the wp_mail()
function. However, this is undesirable for my use case as it disables ALL emails. For my use case, I would like to disable all mails individually, so I can later 'overwrite' them with my own emails, but still use the wp_mail()
function to send them.