diff --git a/hezarfen-for-woocommerce.php b/hezarfen-for-woocommerce.php index 267af053..6dfff29d 100644 --- a/hezarfen-for-woocommerce.php +++ b/hezarfen-for-woocommerce.php @@ -41,6 +41,13 @@ function hez_ad_hezarfen_pro_presale() { if( get_option( 'hez_ad_hezarfen_pro_presale_dismiss', 'no' ) === 'yes' ) { return; } + + $timezone = new DateTimeZone('Europe/Istanbul'); + $end = new DateTime('2023-12-06 23:59', $timezone); + + if( current_datetime() >= $end ) { + return; + } ?>