Skip to content

Instantly share code, notes, and snippets.

@nurbek-ab
Created October 15, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nurbek-ab/f3fd090b7e377b1bcb2b to your computer and use it in GitHub Desktop.
Save nurbek-ab/f3fd090b7e377b1bcb2b to your computer and use it in GitHub Desktop.
Supress all notices and warnings in wordpress.
<?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