In wordpress ,errors and warnings are shown even we use define(‘WP_DEBUG’, false); in our config file.Due to the warnings ,many of the wordpress functionalities that depend upon ajax request fails.So we need to hide those warnings .
T0 hide all the errors and warnings replace define(‘WP_DEBUG’, false); in the config file in the root directory with the following codes.
1 2 3 4 5 6 |
ini_set('log_errors','On'); ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); |
This will disable all the errors and warnings.