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/core/update/updater-functions.php +26 -0 1.2.52.7.0 View file →
@@ -63,5 +63,31 @@
63 63 }
64 64
65 65 $wpdb->query("ALTER TABLE {$prefix}contact_segmentation ADD url_query_string longtext NULL DEFAULT NULL"); // phpcs:ignore
66 66 }
67 +
68 + /**
69 + * Adds funnel contact table.
70 + *
71 + * @since 1.5.0
72 + */
73 + public function add_funnel_contact_table() {
74 + global $wpdb;
75 +
76 + $is_testcase_site = strpos( site_url(), 'artbees.team' ); // It should be removed.
77 +
78 + if (
79 + in_array( 'funnel_contact', $wpdb->tables, true ) &&
80 + ! $is_testcase_site // It should be removed.
81 + ) {
82 + return;
83 + }
84 +
85 + // phpcs:disable
86 + if ( $is_testcase_site ) {
87 + $wpdb->query( "DROP TABLE IF EXISTS $wpdb->prefix" . Database::DATABASE_PREFIX . "funnel_contact" ); // It should be removed.
88 + }
89 + // phpcs:enable
90 +
91 + Database::create_new_table( 'funnel_contact' );
92 + }
67 93 }