Instantly share code, notes, and snippets.

Embed
What would you like to do?
[WordPress Debug.log]Allows you to write the debug.log right into the wp-content-folder.
<?php
// Add the snippet below in the file wp-config.php right above: /* That's all, stop editing! Happy blogging. */
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