PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 2.7.0
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v2.7.0
2.7.0 2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 All 43 releases
← All changes | includes/contact-segmentation/contact-data.php +10 -0 1.1.02.7.0 View file →
@@ -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 /**
@@ -142,8 +146,14 @@
142 146 *
143 147 * @since 1.1.0
144 148 */
145 149 public function get_contact_data() {
150 + if ( ! is_user_logged_in() && ! empty( $_COOKIE['sellkit_contact_segmentation'] ) ) {
151 + self::$historical_data = (array) json_decode( wp_unslash( $_COOKIE['sellkit_contact_segmentation'] ) ); // phpcs:ignore
152 +
153 + return;
154 + }
155 +
146 156 global $wpdb;
147 157
148 158 $sellkit_prefix = Database::DATABASE_PREFIX;
149 159