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
WC_API_Orders::edit_order()
woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php 1193
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 197
do_action( 'woocommerce_update_order', $order->get_id(), $order );
woocommerce/includes/legacy/api/v3/class-wc-api-orders.php 666
do_action( 'woocommerce_update_order', $order->get_id() );
woocommerce/includes/legacy/api/v2/class-wc-api-orders.php 629
do_action( 'woocommerce_update_order', $order->get_id() );

Where the hook is used in WooCommerce

Usage not found.