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.

Метод класса: WC_Tracker{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код WC_Tracker::finish_snapshot() WC 11.3.0

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