WC_Tracker::get_last_send_time │ private static │ WC 1.0

Get the time the current tracking attempt was closed out.

Despite the option name, this is not only set on delivery: it also advances when an attempt is abandoned, including before a snapshot could be built. The scheduled gate reads it as "this cycle is done", not "a snapshot was sent".

Method of the class: WC_Tracker{}

Hooks from the method

Returns

int|bool.

Usage

$result = WC_Tracker::get_last_send_time();

WC_Tracker::get_last_send_time() code WC 11.2.2

private static function get_last_send_time() {
	/**
	 * Filter the last time tracking data was sent.
	 *
	 * The timestamp also covers abandoned attempts, not only deliveries.
	 *
	 * @since 2.3.0
	 */
	return apply_filters( 'woocommerce_tracker_last_send_time', get_option( 'woocommerce_tracker_last_send', false ) );
}