Skip to content

Instantly share code, notes, and snippets.

Last active Nov 5, 2018
What would you like to do?
[WordPress Debug.log]Allows you to write the debug.log right into the wp-content-folder.
// Turn on "debug.log" and then open the pages where the problem occurs. Here with this snippet you can enable the "debug.log"
// Add the snippet below in the file wp-config.php right above: /* That's all, stop editing! Happy blogging. */
// Make sure that the constant "WP_DEBUG" has not already been defined.
// Afterwards You will find the file "debug.log" in your "wp-content" folder.
define('WP_DEBUG', true );
if ( WP_DEBUG )
define('SAVEQUERIES', true );
define('SCRIPT_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
} // end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment