📅  最后修改于: 2022-03-11 14:59:56.782000             🧑  作者: Mango
$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