#51267 closed enhancement (invalid)
Allow us to specify where the recovery emails get sent
Reported by: | pattyok | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Site Health | Keywords: | |
Focuses: | administration | Cc: |
Description
I manage sites for clients. For most sites I set the admin email to the clients email address so they are the default receiver of form notifications and other notifications on the site. It has happened several times in recent weeks where I am updating plugins and hit a critical error on the site. After I have already id'ed and fixed the issue a client will send me a panicked email that their site is down.
I don't want to have to change all of the form notifications to go to the client, just to add my email as the default admin. I cant get into recovery mode without them email, I dont want my clients to get notified that their site is down, I would like those emails to go to me...
I think it makse sense to be able to specify where those site recovery emails get sent to.
Hi @pattyok,
Thanks for this ticket! You'll be happy to know that there is already a filter in WP Core for this purpose.
The
recovery_mode_email
can be used to filter the email being sent to notify about technical issues (see https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-recovery-mode-email-service.php?rev=48782#L204). I am going to improve the inline documentation on that filter a bit as it does not describe the expected elements of the array. But this is a rough example of how to utilize it:This can be put in an MU plugin that you put on your client sites, in the theme you build for them, etc. Hope this helps!