Skip to content

Instantly share code, notes, and snippets.

@developer-anuragsingh
Created April 6, 2022 13:30
Show Gist options
  • Save developer-anuragsingh/8a6819b035e64277f5e33134e5697907 to your computer and use it in GitHub Desktop.
Save developer-anuragsingh/8a6819b035e64277f5e33134e5697907 to your computer and use it in GitHub Desktop.
Add Code in wp-config.php file to enable error reporting in dev environmemnt
// enable debugging and error reporting on, if dev varriable is set
if( isset($_REQUEST['dev']) && (1 == $_REQUEST['dev']) ) {
define('WP_DEBUG', true);
} else {
// else off the debugging
define('WP_DEBUG', false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment