Skip to content

Instantly share code, notes, and snippets.

@JRyven
Created July 21, 2022 17:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JRyven/d5b485daa3fc7af58ff5627651ce4cd2 to your computer and use it in GitHub Desktop.
Save JRyven/d5b485daa3fc7af58ff5627651ce4cd2 to your computer and use it in GitHub Desktop.
WordPress Debugging Options
// general PHP and WordPress warnings, error messages and status information
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WPS_DEBUG', true );
// script and style
define( 'WPS_DEBUG_SCRIPTS', true );
define( 'WPS_DEBUG_STYLES', true );
We would also recommend to clear any caches after script or style debugging has been enabled or disabled.
// DOM parcing
define( 'WPS_DEBUG_DOM', true );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment