Is it possible to have WordPress email the site administrator whenever a PHP error message is displayed? Ideally the message would also be filtered out of the HTML output, so as to avoid information disclosure.
I ask because, while @ini_set('display_errors', 0);
is at the top of my wp-config.php
and working nicely, I want to receive notifications about errors.
I will happily write a custom plugin to do this, if someone who knows more about WP can point me in the direction of where I might hook in to get the job done.
Final bit: Am I crazy for wanting something this out-of-the-ordinary?