How do you hide PHP Warnings in WordPress?
ReportQuestion
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.Morbi adipiscing gravdio, sit amet suscipit risus ultrices eu.Fusce viverra neque at purus laoreet consequa.Vivamus vulputate posuere nisl quis consequat.
Answer ( 1 )
Please briefly explain why you feel this answer should be reported.
After I moved one of my sites from the local host MAMP location to the live domain, I started receiving a couple of php warnings for a plugin.
My wp-config.php file already had the line: define(‘WP_DEBUG’, false);
but I received the warnings anyway.
The following resolved the problem for me:
In wp-config.php, replace:
with:
I found this solution at the following url:
https://aristath.github.io/blog/wp-hide-php-errors