authentication_storage = $authentication_storage; } public function register_hook() { $hook = 'delete_expired_authentications'; if ( ! wp_next_scheduled( $hook ) ) { wp_schedule_event( time(), 'daily', $hook ); } add_action( $hook, [ $this->authentication_storage, 'delete_expired_authentications' ] ); } }