Deffer first tracker send to a cron instead of direct calling it.
This commit is contained in:
parent
fc43bd2410
commit
07dcf77f6f
|
@ -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' );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue