WordPress at a glance
action is not described

__experimental_woocommerce_blocks_checkout_update_order_meta action-hook . WC 1.0

WooCommerce Blocks Checkout Update Order Meta (experimental).

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.

Usage

add_action( '__experimental_woocommerce_blocks_checkout_update_order_meta', 'action_function_name_7819' );
function action_function_name_7819( $order ){
	// action...
}
$order(WC_Order)
Order object.

Where the hook is called

Checkout::create_or_update_draft_order()
__experimental_woocommerce_blocks_checkout_update_order_meta
woocommerce/packages/woocommerce-blocks/src/StoreApi/Routes/Checkout.php 373
do_action( '__experimental_woocommerce_blocks_checkout_update_order_meta', $this->order );

Where in WP core the hook is used WooCommerce

Usage not found.