Skip to content

Instantly share code, notes, and snippets.

@hearvox
Created February 16, 2017 16:55
Show Gist options
  • Save hearvox/e780c8de04b713b32a7d6d12189e9910 to your computer and use it in GitHub Desktop.
Save hearvox/e780c8de04b713b32a7d6d12189e9910 to your computer and use it in GitHub Desktop.
WordPress PHP debug global variable settings
<?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