metricool = $metricool; } public function handle(\WP_REST_Request $request, callable $next) { if (!$this->metricool->hasBlogId()) { return $this->sendHttpErrorResponse( 'Blog id missing', null, 403 ); } return $next($request); } }