Changeset 2595616
- Timestamp:
- 09/08/2021 11:01:26 AM (5 years ago)
- Location:
- time-express/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
utils/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
time-express/trunk/readme.txt
r2550745 r2595616 3 3 Tags: timexpress, woocommerce, shipping 4 4 Requires at least: 4.0 5 Tested up to: 5. 7.25 Tested up to: 5.8 6 6 Requires PHP: 7.0 7 7 Stable tag: 1.0.3 -
time-express/trunk/utils/functions.php
r2550745 r2595616 15 15 ); 16 16 $response = wp_remote_post( $api_url, $args ); 17 if(!empty($response)){ 17 18 if($response['response']['code']!=200){ 18 19 return array('error'=>true,'msg'=>$response['response']['message']); 19 20 } 20 21 return array('error'=>false,'response'=>$response['body']); 22 }else{ 23 return array('error'=>true,'msg'=>'Failed connection'); 24 } 21 25 } 22 26 /**Returns Data Array TO Process */
Note: See TracChangeset
for help on using the changeset viewer.