Skip to content

Instantly share code, notes, and snippets.

@localhost8080
Created November 4, 2016 12:39
Show Gist options
  • Save localhost8080/beb02bc8f76668736a502d8691d3f3bf to your computer and use it in GitHub Desktop.
Save localhost8080/beb02bc8f76668736a502d8691d3f3bf to your computer and use it in GitHub Desktop.
// // Enable WP_DEBUG mode
define('WP_DEBUG', true);
// // Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// // Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', true);
@ini_set('display_errors', 1);
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define('SCRIPT_DEBUG', false);
define('SAVEQUERIES', false);
@localhost8080
Copy link
Author

localhost8080 commented Mar 18, 2021

define('WP_DEBUG', false);
if (WP_DEBUG) {
        define('WP_DEBUG_LOG', true);
        define('WP_DEBUG_DISPLAY', true);
        @ini_set('display_errors', 1);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment