Created
February 16, 2017 16:55
-
-
Save hearvox/e780c8de04b713b32a7d6d12189e9910 to your computer and use it in GitHub Desktop.
WordPress PHP debug global variable settings
This file contains 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
<?php | |
/* WordPress debug globals (goes in wp-config.php). | |
* For Dev sites only! | |
* @ link https://premium.wpmudev.org/blog/debugging-wordpress-how-to-use-wp_debug/ | |
*/ | |
// Turn debugging on. | |
define( 'WP_DEBUG', true ); | |
// Log PHP error messages to file: /wp-content/debug.log | |
define( 'WP_DEBUG_LOG', true ); | |
// Turn off the display of error messages on your site. | |
define( 'WP_DEBUG_DISPLAY', false ); | |
// 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