Skip to content

Instantly share code, notes, and snippets.

@wecodelaravel
Forked from hearvox/wp-debug.php
Created May 7, 2019 01:35
Show Gist options
  • Save wecodelaravel/9a607b22e13334030f8fa3396aaa2467 to your computer and use it in GitHub Desktop.
Save wecodelaravel/9a607b22e13334030f8fa3396aaa2467 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