woocommerce_update_order action-hookWC 1.0

Usage

add_action( 'woocommerce_update_order', 'wp_kama_woocommerce_update_order_action', 10, 2 );

/**
 * Function for `woocommerce_update_order` action-hook.
 * 
 * @param  $order_id 
 * @param  $order    
 *
 * @return void
 */
function wp_kama_woocommerce_update_order_action( $order_id, $order ){

	// action...
}
$order_id
-
$order
-

Where the hook is called

OrdersTableDataStore::update()
woocommerce_update_order
WC_Order_Data_Store_CPT::update()
woocommerce_update_order
woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php 2643
do_action( 'woocommerce_update_order', $order->get_id(), $order ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php 220
do_action( 'woocommerce_update_order', $order->get_id(), $order );  // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment

Where the hook is used in WooCommerce

woocommerce/src/Internal/Admin/Schedulers/OrdersScheduler.php 42
add_action( 'woocommerce_update_order', array( __CLASS__, 'possibly_schedule_import' ) );
woocommerce/src/Internal/DataStores/Orders/DataSynchronizer.php 110
self::add_action( 'woocommerce_update_order', array( $this, 'handle_updated_order' ), 100 );