Skip to content

Instantly share code, notes, and snippets.

@ameri110
Last active October 27, 2021 08:26
Show Gist options
  • Save ameri110/242bc0af5daebf46579720f995d0b643 to your computer and use it in GitHub Desktop.
Save ameri110/242bc0af5daebf46579720f995d0b643 to your computer and use it in GitHub Desktop.
wordpress debug
/**
* ADD FOLLOWING TO wp-config.php FILE
*
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the Codex.
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
ini_set( 'log_errors', 'On' );
ini_set( 'display_errors', 'On' );
ini_set( 'error_reporting', E_ALL );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', true );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment