Skip to content

Instantly share code, notes, and snippets.

@Sirvijver
Created December 2, 2021 08:55
Show Gist options
  • Select an option

  • Save Sirvijver/cf83c61fd4131e646966800b18984494 to your computer and use it in GitHub Desktop.

Select an option

Save Sirvijver/cf83c61fd4131e646966800b18984494 to your computer and use it in GitHub Desktop.
not show debug errors in frontend while debug is still active
define( 'WP_DEBUG_DISPLAY', false );
in your wp-config.php should hide the warning in the frontend while the debug.log still gets written (as long as define(
'WP_DEBUG_LOG', true ); is set).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment