Skip to content

Instantly share code, notes, and snippets.

@lynt-smitka
Last active April 21, 2021 08:33
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lynt-smitka/42c7f7795ce7bf7a108ef9b6287c7e15 to your computer and use it in GitHub Desktop.
Display/Log WordPress errors
define( 'WP_DEBUG', true );
define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', '/wp-content/my-wp-debug.log' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment