includes/cli/class-wc-cli-order.php 1 location
|
@@ 440-443 (lines=4) @@
|
| 437 |
|
} |
| 438 |
|
|
| 439 |
|
// order status |
| 440 |
|
if ( ! empty( $data['status'] ) ) { |
| 441 |
|
|
| 442 |
|
$order->update_status( $data['status'], isset( $data['status_note'] ) ? $data['status_note'] : '', true ); |
| 443 |
|
} |
| 444 |
|
|
| 445 |
|
// customer ID |
| 446 |
|
if ( isset( $data['customer_id'] ) && $data['customer_id'] != $order->get_user_id() ) { |
includes/api/class-wc-rest-orders-controller.php 1 location
|
@@ 1060-1062 (lines=3) @@
|
| 1057 |
|
wc_update_order( $order_args ); |
| 1058 |
|
|
| 1059 |
|
// Order status. |
| 1060 |
|
if ( ! empty( $request['status'] ) ) { |
| 1061 |
|
$order->update_status( $request['status'], isset( $request['status_note'] ) ? $request['status_note'] : '' ); |
| 1062 |
|
} |
| 1063 |
|
|
| 1064 |
|
return $order->id; |
| 1065 |
|
} catch ( WC_REST_Exception $e ) { |