• Yep, pretty much does what it says. It’s a much more convenient way to quickly check on any errors that have arisen in the PHP without having to open up the file manually. However, it would nice if there was a way to manually point it to a different save location than the default for the PHP error log.

    I like to keep WP_DEBUG turned on all the time on my Production site with this plugin installed, and then I use .htaccess rules to keep anyone external from accessing the log. To suppress the WordPress default “Site Health Check” warning that comes up I add the following code into my child theme’s functions.php:

    // WordPress' default Health Check dashboard flags some things that are irrelevant to us.
    add_filter('site_status_tests', function (array $test_type) {
    unset($test_type['direct']['debug_enabled']); // Remove warning about logging errors to a potentially public file. We are using the .htaccess file to block external debug file access.
    return $test_type;
    }, 1, 1);
  • You must be logged in to reply to this review.