WC_Tracker::get_last_send_time
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".
Метод класса: WC_Tracker{}
Хуки из метода
Возвращает
int|bool.
Использование
$result = WC_Tracker::get_last_send_time();
Код WC_Tracker::get_last_send_time() WC Tracker::get last send time WC 11.2.1
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 ) );
}