Skip to content

Instantly share code, notes, and snippets.

@sfgarza
Last active June 1, 2018 09:32
Show Gist options
  • Save sfgarza/7187d46e197f34b25b0e62e32199d04a to your computer and use it in GitHub Desktop.
Save sfgarza/7187d46e197f34b25b0e62e32199d04a to your computer and use it in GitHub Desktop.
Add to wp-config.php to activate debug log
<?
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false ); // If you want to turn off on screen display
ini_set('display_errors','Off'); // If you want to turn off on screen display
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment