From 8ca30be959ed4744dc5dd22fdbad9725846de924 Mon Sep 17 00:00:00 2001 From: Dan0sz <18595395+Dan0sz@users.noreply.github.com> Date: Fri, 17 May 2024 13:41:48 +0200 Subject: [PATCH] Fixed: API client host is set to host_domain_url. --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 0712ab21..c0ae29bb 100644 --- a/src/Client.php +++ b/src/Client.php @@ -34,8 +34,8 @@ class Client { */ public function __construct( $token = '' ) { $config = Configuration::getDefaultConfiguration()->setUsername( 'WordPress' )->setPassword( - $token ?: Helpers::get_settings()[ 'api_token' ] - ); + $token ?: Helpers::get_settings()[ 'api_token' ] + )->setHost( Helpers::get_hosted_domain_url() ); $this->api_instance = new DefaultApi( new GuzzleClient(), $config ); }