I’ve just upgraded to WooCommerce 3.0 and am trying to get my plugin working.
I’ve noticed that when I update a custom field against an Order using update_post_meta, it doesn’t update the cache.
When I then create a new
WC_Order and run the method
update_status, it uses the previous value against the field that I previously updated.
With the new version of Woocommerce, what is the correct way to update meta fields against an order?
Read more here: What is the correct way to update meta fields in Woocommerce?