Created
July 28, 2015 14:01
-
-
Save marcbacon/85f5f6d2caa62d07dcaf to your computer and use it in GitHub Desktop.
Display Errors WordPress
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
// Switch on debugging | |
define('WP_DEBUG', true); | |
// Direct WordPress to the debug log file /wp-content/debug.log file | |
define('WP_DEBUG_LOG', true); | |
// PHP 'display_errors' variable is not forced | |
define('WP_DEBUG_DISPLAY', false); | |
// Stops errors from being displayed onscreen | |
@ini_set('display_errors', 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment