I have a wordpress site with a number of different plugins (about 75) all created by me, old and new included. With the evolution of WP and PHP/MySQL, some of the functions in the plugins have deprecated and hence generate warnings and notices and a lot of them.

What I am planning to do is edit each of them individually to fix the warnings/notices. It would take me a lot of time and I can not be sure if I would have covered all the code as it is large. Hence, I would like to know if there is a more elegant way of overriding and catching all warnings/notices and handling them at one place. This would make my life a lot easier, as many of the warnings are repetitive.


  • You can always change the error reporting level, but of course the best course long term is to fix those errors/notices. They might not take as long as you're expecting... Oct 11, 2015 at 15:41

1 Answer 1


It is a good practice (and suitable for production) to log the errors, instead (or in addition to) displaying them. See Configure Error Logging in Codex.

I usually combine it with my Error Log Dashboard Widget plugin for bit of UI on live servers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.