Changeset 2986620
- Timestamp:
- 10/31/2023 08:32:17 AM (2 years ago)
- Location:
- wp-sms-functions/trunk
- Files:
-
- 2 edited
-
inc/providers/Asist_Provider.php (modified) (4 diffs)
-
wp-sms-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-sms-functions/trunk/inc/providers/Asist_Provider.php
r2985968 r2986620 24 24 return $prov; 25 25 }); 26 try {27 $this->soapClient = new SoapCustom($this->wsdl_url);28 } catch (\Exception $exception) {29 30 }31 32 26 add_action('Smsfunctions_provider_settings', array($this, 'settings')); 33 27 add_filter('Smsfunctions_fields', function ($fields) { 34 28 return array_merge($fields, $this->fields()); 35 29 }); 30 } 31 32 private function initSoap() 33 { 34 try { 35 $this->soapClient = new SoapCustom($this->wsdl_url); 36 } catch (\Exception $exception) { 37 38 } 36 39 } 37 40 … … 195 198 public function getOriginator(): array 196 199 { 200 $this->initSoap(); 197 201 $originators = $this->soapClient->getOriginator([ 198 202 'requestXml' => $this->getMainXmlBody('GetOriginator') … … 215 219 public function getCredit() 216 220 { 221 $this->initSoap(); 217 222 $credit = $this->soapClient->getCredit([ 218 223 'requestXml' => $this->getMainXmlBody('GetCredit') … … 246 251 ] 247 252 ]); 253 $this->initSoap(); 248 254 $response = $this->soapClient->sendSms([ 249 255 'requestXml' => $xmlRequest -
wp-sms-functions/trunk/wp-sms-functions.php
r2985968 r2986620 6 6 * Author URI: https://www.gri.net 7 7 * Text Domain: wp-sms-functions 8 * Version: 1.2. 78 * Version: 1.2.8 9 9 * Domain Path: /lang 10 10 * Requires at least: 4.9
Note: See TracChangeset
for help on using the changeset viewer.