Answers for "update order status"

0

update order status

$order = new WC_Order($order_id);
$order->update_status('pending', 'order_note'); // order note is optional, if you want to  add a note to order
Posted by: Guest on October-28-2021
0

update order status

$order = wc_get_order($order_id);
$order->set_status('pending');
$order->save();
Posted by: Guest on October-28-2021

Code answers related to "update order status"

Browse Popular Code Answers by Language