How to Set Your WordPress Recovery Mode Email

by

Anyone who oversees a network of WordPress sites will want to take special note of the PHP Error Protection introduced in WordPress 5.2.

This administrator-focused update will let you safely fix or manage fatal errors without requiring developer time. It features better handling of the so-called “white screen of death,” and a way to enter recovery mode, which pauses error-causing plugins or themes.

From About WordPress 5.2

When any site visitor attempts loading your site and encounters a fatal error, WordPress will send an email outlining the error details and providing a link by which you can enter recovery mode on the site. By default, this email is sent to the administrative email for the site. This is not necessarily the same as the email address associated with your administrator account and you may well have good reason to override the email address to which this error notification message is sent. To do so, simply set the RECOVERY_MODE_EMAIL constant in your wp-config.php.

define( 'RECOVERY_MODE_EMAIL', '{{email}}' );

Of course, replace {{email}} with your own email address.

For My MainWP Friends

I’ve created two snippets that can be used with the handy Code Snippets extension to help you (1) identify your need for setting this constant (returns the admin email of each site) and (2) add the code to your wp-config.php files across your network of sites. Find those snippets in this repository.

The perfect lightweight theme for your next project.