How to disable the fatal error handler

Usually, when a WordPress website triggers a fatal error, it sends an email to the administrators.

If for any reason you want to prevent sending this kind of emails, add this line of code in the file wp-config.php:

define( 'WP_DISABLE_FATAL_ERROR_HANDLER',true );

 

That’s it.

 

You don’t have access to the file wp-connfig.php? Then install Disable Fatal Error Handler, it will update the file wp-config.php for you and the website will not send any more notifications when it triggers fatal errors.