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'] : '' ); |
| 443 |
|
} |
| 444 |
|
|
| 445 |
|
// customer ID |
| 446 |
|
if ( isset( $data['customer_id'] ) && $data['customer_id'] != $order->get_user_id() ) { |
includes/api/class-wc-api-orders.php 1 location
|
@@ 674-677 (lines=4) @@
|
| 671 |
|
wc_update_order( $order_args ); |
| 672 |
|
|
| 673 |
|
// Order status. |
| 674 |
|
if ( ! empty( $data['status'] ) ) { |
| 675 |
|
$order->update_status( $data['status'], isset( $data['status_note'] ) ? $data['status_note'] : '' ); |
| 676 |
|
} |
| 677 |
|
|
| 678 |
|
wc_delete_shop_order_transients( $order->id ); |
| 679 |
|
|
| 680 |
|
do_action( 'woocommerce_api_edit_order', $order->id, $data, $this ); |