WC_Tracker::finish_snapshot │ private static │ WC 1.0

Close out the current tracking attempt, whether a snapshot was sent or the attempt was abandoned before one existed.

The scheduled gate reads only the send time, so advancing it is what puts the store back on the weekly interval and stops the daily retries.

Method of the class: WC_Tracker{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = WC_Tracker::finish_snapshot(): void;

WC_Tracker::finish_snapshot() code WC 11.3.0

private static function finish_snapshot(): void {
	update_option( 'woocommerce_tracker_last_send', time() );
	delete_option( 'woocommerce_tracker_send_failures' );
}