Hide all errors and warnings in wordpress

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.

This will disable all the errors and warnings.