Automattic\WooCommerce\Internal\PushNotifications\Services

PendingNotificationStore::get_allpublicWC 10.7.0

Returns all pending notifications.

Method of the class: PendingNotificationStore{}

No Hooks.

Returns

Notification[].

Usage

$PendingNotificationStore = new PendingNotificationStore();
$PendingNotificationStore->get_all(): array;

Changelog

Since 10.7.0 Introduced.

PendingNotificationStore::get_all() code WC 10.7.0

public function get_all(): array {
	return array_values( $this->pending );
}