Created
March 8, 2019 15:25
-
-
Save Garconis/849f8b620a3adb1837ad4304289e94c5 to your computer and use it in GitHub Desktop.
WordPress | debug PHP by enabling WP_DEBUG log file in WP Config
This file contains 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
<?php // remove this line | |
// add this to your wp-config.php file, before /* That's all, stop editing! Happy blogging. */ | |
define( 'WP_DEBUG', true ); | |
if (WP_DEBUG) { | |
define('WP_DEBUG_LOG', true); | |
define('WP_DEBUG_DISPLAY', false); | |
@ini_set('display_errors',0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment