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 ); }