Monthly Archives - January 2015

Disable warning and errors in wordpress

To disable php warning and general errors you can adjust your wp-settings.php file with the code below.
//Add define(‘WP_DEBUG’,true);
//to wp-config.php to enable display of notices during development.
if (defined(‘WP_DEBUG’) and WP_DEBUG == true){     error_reporting(E_ALL); }
else {     //error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);     error_reporting(0); }