Skip to content

Instantly share code, notes, and snippets.

@addzycullen
Last active March 10, 2023 12:34
Show Gist options
  • Save addzycullen/72a6751d71e8563709788245a9418913 to your computer and use it in GitHub Desktop.
Save addzycullen/72a6751d71e8563709788245a9418913 to your computer and use it in GitHub Desktop.
Enable the WordPress Debug log, and hide errors from displaying on site. To be placed in wp_config file below DB prefix
define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', true );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment