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.
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 totrue
prevents sending those WordPress admin error emails.Additional context
https://wordpress.stackexchange.com/a/361002/134384