worker = $worker; } /** * Register hooks. * * @return void */ public function boot(): void { add_action( ActionSchedulerQueue::ACTION, array( $this->worker, 'handle_action' ), 10, 1 ); add_action( OptionQueue::CRON_HOOK, array( $this->worker, 'drain' ) ); } }