Skip to content

Instantly share code, notes, and snippets.

Created Sep 22, 2020
What would you like to do?
Turn on WP_DEBUG and logging in wp-config.php
* 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.
// this tells WordPress to output errors and warnings.
define( 'WP_DEBUG', true );
// this logs the errors to a file called debug.log in your sites wp-content folder.
define( 'WP_DEBUG_LOG', true );
// you could set this to true to output the errors to the screen.
define( 'WP_DEBUG_DISPLAY', false );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment