Hide PHP Warnings and Errors in WordPress

I manage many WordPress websites and sometimes ( it’s like almost never) after an update (theme, plugin, wp..) I get strange errors or warnings at the top of my dashboard, and on the Front-end.

Usually it is nothing to worry about. But the real problem starts when the notifications about the error/warning just don’t want to go away!

In this case scenario you have to edit your WP-CONFIG file.
Put this in it:

ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

Save the changes you made and Voila > No more PHP nags.

(ps. If you already have define('WP_DEBUG', false);
then just replace it with the code I gave you)

More from author


Please enter your comment!
Please enter your name here

Related posts

Latest posts

Winamp is the best music player for Windows PC

Winamp, it really whips the llama's ass! 🙂 The best music player of all time.Old school people should know why. My first music player is...

Preload, DNS Prefetch, Preconnect

Find out what does Preload, DNS Prefetch an Preconnect functions are, how they differ from each other and where to use them.

All in One SEO Pack Pro vs Yoast SEO Pro

The ultimate comparison: All in One SEO pack Pro vs Yoast SEO Pro. Find out which one is the best in the year 2020.