Created
October 15, 2015 09:39
-
-
Save nurbek-ab/f3fd090b7e377b1bcb2b to your computer and use it in GitHub Desktop.
Supress all notices and warnings in wordpress.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// place this to mu-plugins folder under wp-content | |
// set WP_DEBUG to true in wp_config.php to see all other errors | |
error_reporting(E_ALL & ~( E_NOTICE | E_USER_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED | E_WARNING | E_CORE_WARNING | E_USER_WARNING | E_COMPILE_WARNING | E_PARSE )); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment