Automattic\WooCommerce\Internal\PushNotifications\Entities

PushToken::get_last_sent_at_gmt │ public │ WC 11.2.0

Gets the date this token was last sent to WPCOM, as a GMT Y-m-d H:i:s string, or null if it has never been sent.

This records that WPCOM accepted a payload containing the token. It is not a delivery receipt: what happens between WPCOM and the device is downstream of anything this plugin can observe.

Method of the class: PushToken{}

No Hooks.

Returns

string|null.

Usage

$PushToken = new PushToken();
$PushToken->get_last_sent_at_gmt(): ?string;

Changelog

Since 11.2.0 Introduced.

PushToken::get_last_sent_at_gmt() code WC 11.3.0

public function get_last_sent_at_gmt(): ?string {
	return $this->last_sent_at_gmt;
}