Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Last active October 13, 2023 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelmaeuer/cfe46bd8221ae9b76cf931f4727bfb62 to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/cfe46bd8221ae9b76cf931f4727bfb62 to your computer and use it in GitHub Desktop.
// Turns WordPress debugging on in wp-config.php
define('WP_DEBUG', true);
// Tells WordPress to log everything to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Doesn’t force the PHP 'display_errors' variable to be on
define('WP_DEBUG_DISPLAY', false);
// Hides 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