php and wordpress warnings

How to Hide PHP Warnings and Notices in WordPress

PHP Warnings And Notices in WordPress

PHP warnings and notices can be generated due to WordPress and PHP conflicts. But you dont have to worry as they can be fixed in newer versions. However, there is a simple hack for this.

How To Hide Them?

If you have set WP_DEBUG to false in your wp-config.php file that will fix the issue.

However, if it doesn’t hide errors simply paste following code after  define('WP_DEBUG', false); in your wp-config.php file.

with this code:

You will see the magic and no more errors will be there.