Created
April 6, 2022 13:30
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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