do_action( '__experimental_woocommerce_blocks_checkout_update_order_meta', WC_Order $order )

WooCommerce Blocks Checkout Update Order Meta (experimental).


Description Description

This hook gives extensions the chance to add or update meta data on the $order.

This is similar to existing core hook woocommerce_checkout_update_order_meta. We’re using a new action:

  • To keep the interface focused (only pass $order, not passing request data).
  • This also explicitly indicates these orders are from checkout block/StoreAPI.

See also See also


Top ↑

Parameters Parameters

$order

Order object.


Top ↑

Source Source

File: packages/woocommerce-blocks/src/StoreApi/Routes/Checkout.php



Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.