How to hide PHP Warnings and Notices in WordPress

Find this line in your wp-config file:

define('WP_DEBUG', false);

Replace that line with this:

ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
Tweet It. Share It.

See more Code Snippet, php, Wordpress