Automattic\WooCommerce\Internal\PushNotifications\Services

UserDataCleanupService::delete_data_for_user │ private │ WC 1.0

Deletes both kinds of stored push notification data for a user.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->delete_data_for_user( $user_id ): void;
$user_id(int) (обязательный)
The user ID.

Код UserDataCleanupService::delete_data_for_user() WC 11.2.2

private function delete_data_for_user( int $user_id ): void {
	$this->push_tokens_data_store->delete_for_user( $user_id );
	$this->preferences_data_store->delete( $user_id );
}