Sometimes we facing admin dashboard errors and warnings. When we set debug mode on then we have get clear idea about which error facing at our end. Sometime we need to show / hide errors then we can add below all code as per requirements.

WP_DEBUG & WP_DEBUG_LOG is the constant that tells WordPress to, On / Off our site debug mode true means on debug mode and false means to off debug mode.

WP_DEBUG_DISPLAY & display_errors is the constant that tells WordPress to, show / hide all the debugged errors and warnings…. true means to show and false means to hide errors.

CONCATENATE_SCRIPTS is the constant that tells WordPress to, well.. concatenate all of the dependencies into one URL and load it together 

Note: These lines must be added above the /* That's all, stop editing! Happy publishing. */ line in the wp-config.php file in order to work properly.


// Disable WP_DEBUG mode but for enable change to true
define( 'WP_DEBUG', false );

// Disable Debug logging to the /wp-content/debug.log file but for enable change to true
define( 'WP_DEBUG_LOG', false );

// Disable display of errors and warnings but for enable change to 1, 1, E_ALL respectively
define( 'WP_DEBUG_DISPLAY', false );
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);

// Load the scripts one by one instead of concatenated.
define('CONCATENATE_SCRIPTS', false);