How to Hide PHP Warnings and Notices in WordPress

| Last Updated: | In: WordPress, WordPress Snippets


Are you want to hide all PHP related warnings and notices from your WordPress websites? If your answer is yes, then this tutorial is designed for you. In this post, I will explain “How to Hide PHP Warnings and Notices in WordPress”.

Use the below code in your wp-config.php and let me know if this code will not work for you.

Go to the root directory of your website and open the wp-config.php file. Now search define('WP_DEBUG', false); and replace this piece of codes with below code. Below code will hide all PHP related warnings and notices from your WordPress website.

…below are the some WordPress tricks, others are reading.

5 Best Slider Plugins For WordPress Website
Usefull wordpress code snippets, hacks and tips
Extremely Useful Tricks For WordPress Website
Top 5 tips to speed up your wordpress website
Top 10 WooCommerce Tips and Tricks

Conclusion

Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials and yes also subscribe my blog to get all my future tutorial directly in your mailbox.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:


, , , ,