WPDD

WordPress Develop & Design

DEBUG will activate just for one day

$currentDate = date('Y-m-d');

// The target date
$targetDate = '2026-01-01';

// Check if the current date matches the target date
if ($currentDate === $targetDate ) { 

        define('WP_DEBUG', true);
	define('WP_DEBUG_LOG', true);
	define('WP_DEBUG_DISPLAY', true);  	
	
}else{
	
	define('WP_DEBUG', false);
	define('WP_DEBUG_LOG', false);
	define('WP_DEBUG_DISPLAY', false);  
	
}