Skip to content

Instantly share code, notes, and snippets.

@jjeaton
Last active November 5, 2020 13:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jjeaton/f69bbb0c2b132f9a00f4 to your computer and use it in GitHub Desktop.
Save jjeaton/f69bbb0c2b132f9a00f4 to your computer and use it in GitHub Desktop.
WP_DEBUG in wp-config.php using debug.log
<?php
define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SAVEQUERIES', true );
define( 'SCRIPT_DEBUG', true );
@ini_set( 'display_errors', 0 );
if ( function_exists( 'xdebug_disable' ) ) {
xdebug_disable();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment