Skip to content

Commit

Permalink
date restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
mskapusuz committed Dec 6, 2023
1 parent 7665cc2 commit 35ff595
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hezarfen-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
?>
<div id="in-hezarfen-pro-presale">
<img style="height:200px" src="<?php echo WC_HEZARFEN_UYGULAMA_URL . 'assets/admin/hezarfen-pro.png'; ?>" />
Expand Down

0 comments on commit 35ff595

Please sign in to comment.