From 07dcf77f6ff25727325f2db3e076bb7aa3bbc1bb Mon Sep 17 00:00:00 2001 From: Gerhard Potgieter Date: Tue, 24 Apr 2018 14:16:41 +0200 Subject: [PATCH] Deffer first tracker send to a cron instead of direct calling it. --- includes/admin/class-wc-admin-setup-wizard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-setup-wizard.php b/includes/admin/class-wc-admin-setup-wizard.php index 39514eb0c9c..5fa80ff7983 100644 --- a/includes/admin/class-wc-admin-setup-wizard.php +++ b/includes/admin/class-wc-admin-setup-wizard.php @@ -552,7 +552,7 @@ class WC_Admin_Setup_Wizard { if ( $tracking ) { update_option( 'woocommerce_allow_tracking', 'yes' ); - WC_Tracker::send_tracking_data( true ); + wp_schedule_single_event( time() + 10, 'woocommerce_tracker_send_event', array( true ) ); } else { update_option( 'woocommerce_allow_tracking', 'no' ); }