Created
May 24, 2016 03:04
-
-
Save jennimckinnon/6b47ca2c3bf8c4269d3bc5d3e89ccd4f to your computer and use it in GitHub Desktop.
Turn on debugging and logging and turning off reporting in WordPress. From: https://premium.wpmudev.org/blog/debugging-wordpress-how-to-use-wp_debug/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Turn debugging on | |
define('WP_DEBUG', true); | |
// Tell WordPress to log everything to /wp-content/debug.log | |
define('WP_DEBUG_LOG', true); | |
// Turn off the display of error messages on your site | |
define('WP_DEBUG_DISPLAY', false); | |
// For good measure, you can also add the follow code, which will hide errors from being displayed on-screen | |
@ini_set('display_errors', 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment