Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#51267 closed enhancement (invalid)

Allow us to specify where the recovery emails get sent

Reported by: pattyok's profile pattyok Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Site Health Keywords:
Focuses: administration Cc:


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.

Change History (2)

#1 @desrosj
4 years ago

  • Component changed from General to Site Health
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

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 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:

function mysite_recovery_mode_email( $email ) {
    $email['to'] = '';
    return $email;
add_filter( 'recovery_mode_email', 'mysite_recovery_mode_email' );

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!

#2 @desrosj
4 years ago

In 48962:

Docs: Improve the recovery_mode_email inline docs.

See #51267, #50768.

Note: See TracTickets for help on using tickets.