Automattic\WooCommerce\Internal\PushNotifications\Services
PendingNotificationStore::register
Enables the store so it accepts notifications.
Called from PushNotifications::on_init() after enablement checks pass.
Метод класса: PendingNotificationStore{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$PendingNotificationStore = new PendingNotificationStore(); $PendingNotificationStore->register(): void;
Список изменений
| С версии 10.7.0 | Введена. |
Код PendingNotificationStore::register() PendingNotificationStore::register WC 11.2.2
public function register(): void {
$this->enabled = true;
}