Skip to content

Commit

Permalink
Hide add-ons sale promo if offer date has passed
Browse files Browse the repository at this point in the history
  • Loading branch information
bonny committed Jan 24, 2025
1 parent 1e920cf commit 6c096db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dropins/class-sidebar-add-ons-dropin.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public function on_sidebar_html_sale_promo() {
return;
}

// Hide if date is after January 31 2025.
if ( time() > strtotime( '2025-01-31' ) ) {
return;
}

?>
<!--
Insert promo:
Expand Down

0 comments on commit 6c096db

Please sign in to comment.