Hide Warnings and Errors on WordPress Site

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

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.

2 Responses

  1. 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!

Any idea? Fill the comment below

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

More To Explore