How to setup an automatic redirect for when there has been a critical error on the site?
The WP_Fatal_Error_Handler class allows for a drop-in file to override the default handling of errors. If you have a file at wp-content/php-error.php, that file will be used instead of the default WP error handling. Note that this drop-in file comes with some caveats: A drop-in php-error.php can be used as a custom template. This drop-in … Read more