woocommerce_update_order
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
woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php 2958
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 244
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 102
add_action( 'woocommerce_update_order', array( __CLASS__, 'possibly_schedule_import' ) );
woocommerce/src/Internal/Caches/OrdersVersionStringInvalidator.php 65
add_action( 'woocommerce_update_order', array( $this, 'handle_woocommerce_update_order' ), 10, 2 );
woocommerce/src/Internal/DataStores/Orders/DataSynchronizer.php 107
add_action( 'woocommerce_update_order', array( $this, 'handle_updated_order' ), 100 );