| @@ -10,11 +10,11 @@ | ||
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | class Birthday { |
| 13 | 13 | const PROMOTION_URL = 'https://go.elementor.com/go-pro-wordpress-notice-birthday/'; |
| 14 | - const ELEMENTOR_POINTER_ID = 'toplevel_page_elementor-home'; | |
| 15 | - const SEEN_TODAY_KEY = '_elementor-2026-birthday'; | |
| 16 | - const DISMISS_ACTION_KEY = 'birthday_pointer_2026'; | |
| 14 | + const ELEMENTOR_POINTER_ID = 'toplevel_page_elementor'; | |
| 15 | + const SEEN_TODAY_KEY = '_elementor-2025-birthday'; | |
| 16 | + const DISMISS_ACTION_KEY = 'birthday_pointer_2025'; | |
| 17 | 17 | |
| 18 | 18 | public function __construct() { |
| 19 | 19 | add_action( 'admin_print_footer_scripts-index.php', [ $this, 'enqueue_notice' ] ); |
| 20 | 20 | } |
| @@ -26,10 +26,10 @@ | ||
| 26 | 26 | |
| 27 | 27 | $this->set_seen_today(); |
| 28 | 28 | $this->enqueue_dependencies(); |
| 29 | 29 | |
| 30 | - $pointer_content = '<h3>' . esc_html__( 'Elementor’s 10th Birthday sale!', 'elementor' ) . '</h3>'; | |
| 31 | - $pointer_content .= '<p>' . esc_html__( 'Get more capabilities for less with exclusive discounts. Limited time only.', 'elementor' ); | |
| 30 | + $pointer_content = '<h3>' . esc_html__( 'Elementor’s 9th Birthday sale!', 'elementor' ) . '</h3>'; | |
| 31 | + $pointer_content .= '<p>' . esc_html__( 'Celebrate Elementor’s birthday with us—exclusive deals are available now.', 'elementor' ); | |
| 32 | 32 | $pointer_content .= sprintf( |
| 33 | 33 | '<p><a class="button button-primary" href="%s" target="_blank">%s</a></p>', |
| 34 | 34 | self::PROMOTION_URL, |
| 35 | 35 | esc_html__( 'View Deals', 'elementor' ) |
| @@ -79,10 +79,10 @@ | ||
| 79 | 79 | return current_user_can( 'manage_options' ) || current_user_can( 'edit_pages' ); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | private static function is_campaign_time() { |
| 83 | - $start = new \DateTime( '2026-06-15 10:00:00', new \DateTimeZone( 'UTC' ) ); | |
| 84 | - $end = new \DateTime( '2026-06-17 03:59:00', new \DateTimeZone( 'UTC' ) ); | |
| 83 | + $start = new \DateTime( '2025-06-10 12:00:00', new \DateTimeZone( 'UTC' ) ); | |
| 84 | + $end = new \DateTime( '2025-06-17 03:59:00', new \DateTimeZone( 'UTC' ) ); | |
| 85 | 85 | $now = new \DateTime( 'now', new \DateTimeZone( 'UTC' ) ); |
| 86 | 86 | |
| 87 | 87 | return $now >= $start && $now <= $end; |
| 88 | 88 | } |