PHP warnings and notices are not like internal server error, syntax errors, or fatal errors, which stop your website from loading.
They are nothing to worry about on a production site most of the time.
Though the plugin/theme developer should know about these so that they may fix them in a future release.
From this article, you’ll learn how to disable PHP warning or notice.
You need to edit the wp-config.php file.
Access the wp-config.php file
For accessing the wp-config.php file, you can use one of the below ways:
1. Enter your hosting control panel.
2. Through the FTP file manager.
Steps to Disable PHP Warning or notice
1. Navigate to the WordPress root folder.
2. Find the wp-config.php file.
3. Click on Edit, or download it to your personal computer.
4. Inside your wp-config.php file, look for the following code:
- define('WP_DEBUG', true);
5. Replace it with the following code: