# Send Fatal Error Emails to Your Developers

> Sends WordPress's "your site is experiencing a technical issue" recovery emails to your developers instead of (or as well as) the site owner, so the right people can fix it.

- Type: PHP
- Runs: Run everywhere
- Category: [Email](https://wpide.com/library/category/email/)
- Tags: email, errors, developers
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/email-recovery-mode-to-developers/

## Code

```php
$wpide_recovery_devs       = array(); // e.g. array( 'dev@agency.com' ).
$wpide_recovery_keep_admin = true;

add_filter( 'recovery_mode_email', function ( $email ) use ( $wpide_recovery_devs, $wpide_recovery_keep_admin ) {
    $devs = array_filter( $wpide_recovery_devs, 'is_email' );

    if ( $devs ) {
        $current     = $wpide_recovery_keep_admin ? (array) $email['to'] : array();
        $email['to'] = array_values( array_unique( array_merge( $current, $devs ) ) );
    }

    return $email;
} );
```

## Notes

Add your developers' addresses at the top and set $wpide_recovery_keep_admin to false to stop the site owner receiving them; WordPress sends at most one such email per day.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Send Fatal Error Emails to Your Developers" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
