WordPress Recovery Mode Email

If you manage WordPress websites for other people, you may be familiar with the new Recovery Mode feature as of WP 5.2. If there is a fatal error with the website, the site administrator will receive an email containing a link to access Recovery Mode.

Although I am an administrator on many sites, I do not own them and am not the primary admin contact. As a result, I would not receive the recovery email unless it was forwarded to me.

To get around this, you can define the email using the WP Hook RECOVERY_MODE_EMAIL. At the bottom of the wp-config.php file that is designated for extra definitions, add the following code with your email in lieu of the placeholder email.

define( 'RECOVERY_MODE_EMAIL', '' );
Related Articles