main->client()->acceptTerms([ 'ip' => $this->request->getClientIp(), 'acceptance_url' => home_url(), ])->get(); if (\is_wp_error($res)) { return $this->error('api_request_error'); } return $this->respond($res); } }