'Is it possible to practically update the order items after the order?

I'm looking for how I can update the items after the order is made. I'm wondering if there is a practical way to do this. For example, I want to remove 1 item after the order is fulfilled. So I want to cancel. There is a hook for this called wc_update_order_item_meta. Yes, but there are many metas (_qty, _line_total ...) I'm researching if a collective change can be made. But I couldn't find a general, practical solution.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source