woocommerce_update_order_item
Usage
add_action( 'woocommerce_update_order_item', 'wp_kama_woocommerce_update_order_item_action', 10, 3 ); /** * Function for `woocommerce_update_order_item` action-hook. * * @param $item_id * @param $item * @param $item_order_id * * @return void */ function wp_kama_woocommerce_update_order_item_action( $item_id, $item, $item_order_id ){ // action... }
- $item_id
- -
- $item
- -
- $item_order_id
- -
Where the hook is called
woocommerce_update_order_item
woocommerce_update_order_item
woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php 91
do_action( 'woocommerce_update_order_item', $item->get_id(), $item, $item->get_order_id() );
woocommerce/includes/wc-order-item-functions.php 62
do_action( 'woocommerce_update_order_item', $item_id, $args );