Automattic\WooCommerce\Internal\PushNotifications\Entities
PushToken::get_last_sent_at_gmt
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.
Метод класса: PushToken{}
Хуков нет.
Возвращает
string|null.
Использование
$PushToken = new PushToken(); $PushToken->get_last_sent_at_gmt(): ?string;
Список изменений
| С версии 11.2.0 | Введена. |
Код PushToken::get_last_sent_at_gmt() PushToken::get last sent at gmt WC 11.3.0
public function get_last_sent_at_gmt(): ?string {
return $this->last_sent_at_gmt;
}