roots / bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

Home Page:https://roots.io/bedrock/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `WP_DISABLE_FATAL_ERROR_HANDLER=true` constant to development

strarsis opened this issue · comments

Summary

WordPress automatically sends an admin email when a fatal PHP error is encountered.
However, this is usually not intended in development (it is very annoying/confusing actually).

Setting the WP_DISABLE_FATAL_ERROR_HANDLER constant to true prevents sending those WordPress admin error emails.

Config::define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

Additional context

https://wordpress.stackexchange.com/a/361002/134384