php - Woocommerce remove order item meta
I have a plugin that adds custom meta to Woocommerce Order Items.
In certain circumstances I'd like to be able to remove them (or rename them).
Along withwc_add_order_item_meta()
andwc_update_order_item_meta()
, though, I wasn't able to find a function to delete them.
I guess I could use update with anull
value, but I'm not sure if that is functionally equivalent to it.
Answer
Solution:
or even this