Automattic\WooCommerce\Internal\PushNotifications\DataStores
PushTokensDataStore::warn_last_sent_at_not_recorded
Logs that last-send stamps could not be recorded.
Method of the class: PushTokensDataStore{}
No Hooks.
Returns
void. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->warn_last_sent_at_not_recorded( $post_ids, $error ): void;
- $post_ids(int[]) (required)
- The token post IDs affected.
- $error(string) (required)
- What went wrong, and what was skipped as a result.
PushTokensDataStore::warn_last_sent_at_not_recorded() PushTokensDataStore::warn last sent at not recorded code WC 11.3.0
private function warn_last_sent_at_not_recorded( array $post_ids, string $error ): void {
wc_get_logger()->warning(
'Could not record last sent time for push tokens.',
array(
'source' => PushNotifications::FEATURE_NAME,
'token_count' => count( $post_ids ),
'error' => $error,
)
);
}