How to hide PHP Warnings and Notices in WordPress

By ukmodak | March 31st 2024 10:38:39 AM | viewed 328 times

Add the following code in wp-config.php files

	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);
bONEandALL
Visitor

Total : 20171

Today :18

Today Visit Country :

  • China
  • United States
  • United Kingdom
  • Portugal
  • Canada
  • Russia