How to hide PHP Warnings and Notices in WordPress

PHP Warnings and PHP Notices can come from various plugins and might fill up your error log. You can turn them off in your wp-config.php file with these settings:

ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

Leave a Reply

Your email address will not be published.