Skip to content

Instantly share code, notes, and snippets.

@mrtwebdesign
Created December 30, 2013 07:51
Show Gist options
  • Select an option

  • Save mrtwebdesign/8179075 to your computer and use it in GitHub Desktop.

Select an option

Save mrtwebdesign/8179075 to your computer and use it in GitHub Desktop.
Turn on debugging without displaying it on the web pages. Errors are written to a log file in wp-content.
// 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', false);
@ini_set('display_errors',0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment