PluginProbe
Elementor Website Builder – more than just a page builder / 3.28.4
Elementor Website Builder – more than just a page builder v3.28.4
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/tracker.php +0 -36 4.1.43.28.4 View file →
@@ -32,10 +32,8 @@
32 32 private static $api_url = 'https://my.elementor.com/api/v1/tracker/';
33 33
34 34 private static $notice_shown = false;
35 35
36 - const LAST_TERMS_UPDATED = '2025-07-07';
37 -
38 36 /**
39 37 * Init.
40 38 *
41 39 * Initialize Elementor tracker.
@@ -46,10 +44,8 @@
46 44 */
47 45 public static function init() {
48 46 add_action( 'elementor/tracker/send_event', [ __CLASS__, 'send_tracking_data' ] );
49 47 add_action( 'admin_init', [ __CLASS__, 'handle_tracker_actions' ] );
50 -
51 - add_action( 'update_option_elementor_allow_tracking', [ __CLASS__, 'set_last_update_time' ] );
52 48 }
53 49
54 50 /**
55 51 * Check for settings opt-in.
@@ -72,10 +68,8 @@
72 68 'opt_in_send_tracking_data',
73 69 ] );
74 70 }
75 71
76 - self::set_last_update_time();
77 -
78 72 if ( empty( $new_value ) ) {
79 73 $new_value = 'no';
80 74 }
81 75
@@ -176,31 +170,8 @@
176 170 public static function is_allow_track() {
177 171 return 'yes' === get_option( 'elementor_allow_tracking', 'no' );
178 172 }
179 173
180 - public static function get_last_update_time() {
181 - return get_option( 'elementor_allow_tracking_last_update', false );
182 - }
183 -
184 - public static function set_last_update_time(): void {
185 - update_option( 'elementor_allow_tracking_last_update', gmdate( 'U' ) );
186 - }
187 -
188 - public static function has_terms_changed( $terms_updated = self::LAST_TERMS_UPDATED ): bool {
189 - if ( ! self::is_allow_track() ) {
190 - return false;
191 - }
192 -
193 - $last_update_time = self::get_last_update_time();
194 - if ( $last_update_time ) {
195 - $terms_updated_timestamp = strtotime( $terms_updated . ' UTC' );
196 -
197 - return $last_update_time < $terms_updated_timestamp;
198 - }
199 -
200 - return true;
201 - }
202 -
203 174 /**
204 175 * Handle tracker actions.
205 176 *
206 177 * Check if the user opted-in or opted-out and update the database.
@@ -243,10 +214,8 @@
243 214
244 215 public static function set_opt_in( $value ) {
245 216 if ( $value ) {
246 217 update_option( 'elementor_allow_tracking', 'yes' );
247 - self::set_last_update_time();
248 -
249 218 self::send_tracking_data( true );
250 219 } else {
251 220 update_option( 'elementor_allow_tracking', 'no' );
252 221 update_option( 'elementor_tracker_notice', '1' );
@@ -592,13 +561,8 @@
592 561
593 562 $site_key = Api::get_site_key();
594 563 if ( ! empty( $site_key ) ) {
595 564 $params['site_key'] = $site_key;
596 - }
597 -
598 - $allowed_usage_time = self::get_last_update_time();
599 - if ( ! empty( $allowed_usage_time ) ) {
600 - $params['allowed_usage_time'] = $allowed_usage_time;
601 565 }
602 566
603 567 /**
604 568 * Tracker send tracking data params.