Hide Warnings and Errors on WordPress Site

Last Updated: June 28, 2017 | Reading Time: < 1 minute

Sometimes, a plugin or theme throwing error or warning messages. To hide it, simply just put this on top of the wp-config.php file:

ini_set('display_errors','off');

All set.

Show 2 Comments

2 Comments

  1. Toni

    You saved my site! I’m so glad I found your post. I’ve spent the past 2 hours trying other recommendations like adding code, reinstalling plugins, etc, but nothing was working. This simple addition worked! Thank you!

    • pupungbp

      Glad it worked for you, Toni 🙂

Any idea? Fill the comment below

This site uses Akismet to reduce spam. Learn how your comment data is processed.