From 89868da3d76f6f0865e6aee509e415c7a8e62ebb Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 9 Jul 2022 17:46:42 -0700
Subject: [PATCH] On activation and deactivation, clean up tokens in previous
 storage

Fixes #2
---
 inc/class-activation-deactivation-hooks.php | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/inc/class-activation-deactivation-hooks.php b/inc/class-activation-deactivation-hooks.php
index d83f17c..21ce717 100644
--- a/inc/class-activation-deactivation-hooks.php
+++ b/inc/class-activation-deactivation-hooks.php
@@ -46,10 +46,7 @@ final class Activation_Deactivation_Hooks {
 	 * @return void
 	 */
 	public function clean_usermeta_storage() {
-		wp_schedule_single_event(
-			time() + 600,
-			'redis_user_session_storage_clean_usermeta_storage'
-		);
+		wp_schedule_single_event( time() + 600, $this->cron_hook );
 	}
 
 	/**
-- 
GitLab