@@ -97,14 +97,14 @@ public function edac_black_friday_notice() {
9797 }
9898
9999 // Check if the notice has been dismissed.
100- if ( absint ( get_option ( 'edac_black_friday_2024_notice_dismiss ' , 0 ) ) ) {
100+ if ( absint ( get_option ( 'edac_black_friday_2025_notice_dismiss ' , 0 ) ) ) {
101101 return ;
102102 }
103103
104- // Show from November 25 to December 03.
104+ // Show from November 24 to December 03.
105105 $ current_date = date_i18n ( 'Ymd ' ); // Use date_i18n for localization.
106- $ start_date = '20241125 ' ;
107- $ end_date = '20241203 ' ;
106+ $ start_date = '20251124 ' ;
107+ $ end_date = '20251203 ' ;
108108
109109 if ( $ current_date >= $ start_date && $ current_date <= $ end_date ) {
110110
@@ -127,9 +127,9 @@ public function edac_get_black_friday_message() {
127127 // Construct the promotional message.
128128 $ message = '<div class="edac_black_friday_notice notice notice-info is-dismissible"> ' ;
129129 $ message .= '<p><strong> ' . esc_html__ ( '🎉 Black Friday special! 🎉 ' , 'accessibility-checker ' ) . '</strong><br /> ' ;
130- $ message .= esc_html__ ( 'Upgrade to a paid version of Accessibility Checker from November 25th to December 3rd and get 30% off! Full site scanning, site-wide open issues report, ignore logs, and more. ' , 'accessibility-checker ' ) . '<br /> ' ;
131- $ message .= '<a class="button button-primary" href=" ' . esc_url ( edac_link_wrapper ( 'https://my.equalizedigital.com/support/pre-sale-questions/ ' , 'admin-notice ' , 'BF2025 -presale ' , false ) ) . '"> ' . esc_html__ ( 'Ask a Pre-Sale Question ' , 'accessibility-checker ' ) . '</a> ' ;
132- $ message .= '<a class="button button-primary" href=" ' . esc_url ( edac_link_wrapper ( 'https://equalizedigital.com/accessibility-checker/pricing/ ' , 'admin-notice ' , 'BF2025 -pricing ' , false ) ) . '"> ' . esc_html__ ( 'Upgrade Now ' , 'accessibility-checker ' ) . '</a></p> ' ;
130+ $ message .= esc_html__ ( 'Upgrade to a paid version of Accessibility Checker from November 24th to December 3rd and get 30% off! Full site scanning, site-wide open issues report, ignore logs, and more. ' , 'accessibility-checker ' ) . '<br /> ' ;
131+ $ message .= '<a class="button button-primary" href=" ' . esc_url ( edac_link_wrapper ( 'https://my.equalizedigital.com/support/pre-sale-questions/ ' , 'admin-notice ' , 'BlackFriday25 -presale ' , false ) ) . '"> ' . esc_html__ ( 'Ask a Pre-Sale Question ' , 'accessibility-checker ' ) . '</a> ' ;
132+ $ message .= '<a class="button button-primary" href=" ' . esc_url ( edac_link_wrapper ( 'https://equalizedigital.com/accessibility-checker/pricing/ ' , 'admin-notice ' , 'BlackFriday25 -pricing ' , false ) ) . '"> ' . esc_html__ ( 'Upgrade Now ' , 'accessibility-checker ' ) . '</a></p> ' ;
133133 $ message .= '</div> ' ;
134134
135135 return $ message ;
@@ -153,7 +153,10 @@ public function edac_black_friday_notice_ajax() {
153153
154154 }
155155
156- $ results = update_option ( 'edac_black_friday_2024_notice_dismiss ' , true );
156+ $ results = update_option ( 'edac_black_friday_2025_notice_dismiss ' , true );
157+ // Delete old options if they exist.
158+ delete_option ( 'edac_black_friday_2024_notice_dismiss ' );
159+ delete_option ( 'edac_black_friday_2023_notice_dismiss ' );
157160
158161 if ( ! $ results ) {
159162
0 commit comments