Automattic\WooCommerce\Internal\PushNotifications\Services
UserDataCleanupService::init
Initialize dependencies.
Метод класса: UserDataCleanupService{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$UserDataCleanupService = new UserDataCleanupService(); $UserDataCleanupService->init( $push_tokens_data_store, $preferences_data_store ): void;
- $push_tokens_data_store(PushTokensDataStore) (обязательный)
- The push tokens data store.
- $preferences_data_store(NotificationPreferencesDataStore) (обязательный)
- The notification preferences data store.
Список изменений
| С версии 11.2.0 | Введена. |
Код UserDataCleanupService::init() UserDataCleanupService::init WC 11.2.2
final public function init(
PushTokensDataStore $push_tokens_data_store,
NotificationPreferencesDataStore $preferences_data_store
): void {
$this->push_tokens_data_store = $push_tokens_data_store;
$this->preferences_data_store = $preferences_data_store;
}