Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WordPress | debug PHP by enabling WP_DEBUG log file in WP Config
<?php // remove this line
// add this to your wp-config.php file, before /* That's all, stop editing! Happy blogging. */
define( 'WP_DEBUG', true );
if (WP_DEBUG) {
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment