I can understand your frustration when you see the WordPress PHP warnings or notice on top of your gorgeous website.
You wish somehow you can hide this warning until the developer fixes it .
and it looks extremely unprofessional when your website is LIVE.
But I have a good news for you – You can hide WordPress PHP warnings or notices!!
so don’t panic!
First let’s understand what are the WP warnings?
WordPress PHP warnings are the messages or notice about some bug in the code of a particular file not a fatal error or internal server error which can stop your website from loading.
How to hide WP warnings?
Step 1: Go to public_html folder in your hosting and access the wp-config.php file.
Step 2: Inside wp-config.php file search for the following code
It is also possible, that this line is already set to false. In that case, you’ll see the following code:
In either case, you need to replace this line with the following code:
ini_set(‘error_reporting’, E_ALL );
Step 3: Save the file and upload it to the server.
Note: – Make sure that you take a backup of your website before doing this or else if this file edited in an incorrect way may result in breaking your website.