{"id":312,"date":"2015-07-09T13:39:38","date_gmt":"2015-07-09T13:39:38","guid":{"rendered":"http:\/\/localhost\/syllogic\/wp\/?p=312"},"modified":"2024-02-02T12:22:27","modified_gmt":"2024-02-02T12:22:27","slug":"suppress-error-notices-using-wordpresss-wp_debug","status":"publish","type":"post","link":"http:\/\/localhost:10008\/suppress-error-notices-using-wordpresss-wp_debug\/","title":{"rendered":"Suppress Deprecated Notices"},"content":{"rendered":"\n
In your If you are using PHP 5.5 +, you will get deprecated noticed for WordPress\u2019s mysql_* functions, you can turn them off using:<\/p>\n\n\n\n Or for something really robust, which happens to be the case a lot.<\/p>\n\n\n\nwp-content<\/mark><\/code> folder create a new folder called
mu-plugins<\/code><\/mark> and in that folder create a php<\/em> file with the error level you want, for example:<\/p>\n\n\n\n
\/\/Turns off notices\nerror_reporting(E_ALL ^ E_NOTICE)<\/code><\/pre>\n\n\n\n
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);<\/code><\/pre>\n\n\n\n
error_reporting(E_ALL & ~( E_DEPRECATED | E_USER_DEPRECATED | E_USER_NOTICE | E_STRICT ));<\/code><\/pre>\n\n\n\n