📜  更新订单状态 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:56.782000             🧑  作者: Mango

代码示例2
$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