Automattic\WooCommerce\Internal\PushNotifications\DataStores

PushTokensDataStore::warn_last_sent_at_not_recorded │ private │ WC 1.0

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() 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,
		)
	);
}