Imperative-Ideas

Enable debug logging in WP while disabling display

Oct 8th, 2013
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * For developers: WordPress debugging mode.
  3.  *
  4.  * Change this to true to enable the display of notices during development.
  5.  * It is strongly recommended that plugin and theme developers use WP_DEBUG
  6.  * in their development environments.
  7.  */
  8. // Enable WP_DEBUG mode
  9. define('WP_DEBUG', true);
  10.  
  11. // Enable Debug logging to the /wp-content/debug.log file
  12. define('WP_DEBUG_LOG', true);
  13.  
  14. // Disable display of errors and warnings
  15. define('WP_DEBUG_DISPLAY', false);
  16. @ini_set('display_errors',0);
RAW Paste Data