Skip to content

Instantly share code, notes, and snippets.

@solepixel
Created December 20, 2018 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solepixel/459df2857688eba030dc6f16c3dc4616 to your computer and use it in GitHub Desktop.
Save solepixel/459df2857688eba030dc6f16c3dc4616 to your computer and use it in GitHub Desktop.
Enable WP_DEBUG on production sites - Only do this temporarily to find problems. Disable and delete wp-content/debug.log when you've resolved your issue.
<?php
// ^^ Other config settings such as database credentials. ^^
/**
* WordPress debugging mode.
*
* For information on other constants that can be used for debugging,
* visit the Codex.
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
/* That's all, stop editing! Happy blogging. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment