Skip to content

Instantly share code, notes, and snippets.

@emgk
Created December 11, 2017 06:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save emgk/3ca3b6691b6400aaacc646426dd05177 to your computer and use it in GitHub Desktop.
Save emgk/3ca3b6691b6400aaacc646426dd05177 to your computer and use it in GitHub Desktop.
WP Debug Configurations
define('WP_DEBUG', true);
define('SCRIPT_DEBUG',true);
if ( WP_DEBUG ) {
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
@ini_set( 'log_errors', 'On' );
@ini_set( 'display_errors', 'Off' );
@ini_set( 'error_reporting', E_ALL );
@ini_set( 'error_log', 'php_error.log' );
define('SAVEQUERIES', false); // show queries
define( 'WCS_DEBUG', true ); // show scheduled jobs for WooCommerce under Tools menu
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment