Deffer first tracker send to a cron instead of direct calling it.

This commit is contained in:
Gerhard Potgieter 2018-04-24 14:16:41 +02:00
parent fc43bd2410
commit 07dcf77f6f
1 changed files with 1 additions and 1 deletions

View File

@ -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' );
}