Skip to content

Instantly share code, notes, and snippets.

@indikatordesign
Last active November 5, 2018 07:55
Show Gist options
  • Save indikatordesign/562bd70a286a82b89f962332a9399d5d to your computer and use it in GitHub Desktop.
Save indikatordesign/562bd70a286a82b89f962332a9399d5d to your computer and use it in GitHub Desktop.
[WordPress Debug.log]Allows you to write the debug.log right into the wp-content-folder.
<?php
// 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