| @@ -55,8 +55,12 @@ | ||
| 55 | 55 | $this->update_user_info(); |
| 56 | 56 | |
| 57 | 57 | $this->data = array_merge( $this->data, self::$historical_data ); |
| 58 | 58 | |
| 59 | + if ( ! class_exists( 'Contact_Data_Updater' ) ) { | |
| 60 | + require_once __DIR__ . '/contact-data-updater.php'; | |
| 61 | + } | |
| 62 | + | |
| 59 | 63 | Contact_Data_Updater::get_instance(); |
| 60 | 64 | } |
| 61 | 65 | |
| 62 | 66 | /** |
| @@ -144,8 +148,9 @@ | ||
| 144 | 148 | */ |
| 145 | 149 | public function get_contact_data() { |
| 146 | 150 | if ( ! is_user_logged_in() && ! empty( $_COOKIE['sellkit_contact_segmentation'] ) ) { |
| 147 | 151 | self::$historical_data = (array) json_decode( wp_unslash( $_COOKIE['sellkit_contact_segmentation'] ) ); // phpcs:ignore |
| 152 | + | |
| 148 | 153 | return; |
| 149 | 154 | } |
| 150 | 155 | |
| 151 | 156 | global $wpdb; |