inc/rest/Rest.php
@@ -39,9 +39,15 @@ $this->cache = Cache::for($this->cacheName, $this->cacheTtl); } add_action('rest_api_init', [$this, 'registerRoutes']); add_action('rest_api_init', [$this, 'registerRoutes'], 10); add_action('rest_api_init', [$this, 'ensureDefinitions'], 9); } public function ensureDefinitions():void { Site::getInstance(); Registrar::ensureInstanced(); } /** * Register routes - implement using Route builder */