Automattic\WooCommerce\Internal\PushNotifications\Services

PendingNotificationStore::registerpublicWC 10.7.0

Enables the store so it accepts notifications.

Called from PushNotifications::on_init() after enablement checks pass.

Method of the class: PendingNotificationStore{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 10.7.0 Introduced.

PendingNotificationStore::register() code WC 10.7.0

public function register(): void {
	$this->enabled = true;
}