// trying to be the last person to set this value add_action('wp_loaded', function() { error_reporting( E_ERROR ); }); // even later, but, not too late add_action('wp', function() { error_reporting( E_ERROR ); });