Automattic\WooCommerce\Internal\PushNotifications\Services

PendingNotificationStore::dispatch_allpublicWC 10.7.0

Dispatches all pending notifications via InternalNotificationDispatcher.

Called on shutdown. Sends all pending notifications through the InternalNotificationDispatcher, then clears the store.

Метод класса: PendingNotificationStore{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$PendingNotificationStore = new PendingNotificationStore();
$PendingNotificationStore->dispatch_all(): void;

Список изменений

С версии 10.7.0 Введена.

Код PendingNotificationStore::dispatch_all() WC 11.0.1

public function dispatch_all(): void {
	if ( empty( $this->pending ) ) {
		return;
	}

	$this->dispatcher->dispatch( array_values( $this->pending ) );

	$this->enabled = false;
	$this->pending = array();
}