慕的地6264312
如果您想要客户的订单备注,请替换以下代码行: // Change order status to "completed" $order->update_status( 'completed', __('Approved by the customer', 'woocommerce') ) ;经过: // Add an order note for the customer (blue background note in admin orders) $order->add_order_note( __('You have approved this order on', 'woocommerce') . ' ' . date_i18n( 'F j, Y' ), true ); // Change order status to "completed" $order->update_status( 'completed', __('Approved by the customer', 'woocommerce') ) ;