Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created May 12, 2016 17:49
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 Pebblo/4486cc5e567bc8e5f019b6a1d5057eda to your computer and use it in GitHub Desktop.
Save Pebblo/4486cc5e567bc8e5f019b6a1d5057eda to your computer and use it in GitHub Desktop.
Example of how to enable wp_debug whilst logging errors but not display them.
<?php
//Please do not include the opening php tag.
define( 'WP_DEBUG', true ); // Or false
if ( WP_DEBUG ) {
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment