diff --git a/src/App/Webhook/PdkWebhookManager.php b/src/App/Webhook/PdkWebhookManager.php index ee0c4764e..ba2278b3c 100644 --- a/src/App/Webhook/PdkWebhookManager.php +++ b/src/App/Webhook/PdkWebhookManager.php @@ -57,7 +57,13 @@ public function call($input, string $context = self::CONTEXT_WEBHOOK): Response return $response; } - $this->cronService->dispatch([$this, 'processWebhook'], $input); + /** + * TODO: restore async calling using cronService when this is fixed in WordPress + * besides fixing the wp_schedule_single_event, you also need a Facade to call processWebhook statically + * $this->cronService->dispatch([$this, 'processWebhook'], $input); + * For now: process immediately + */ + $this->processWebhook($input); return $response; }