woocommerce_order_update_coupon
Usage
add_action( 'woocommerce_order_update_coupon', 'wp_kama_woocommerce_order_update_coupon_action', 10, 3 ); /** * Function for `woocommerce_order_update_coupon` action-hook. * * @param $id * @param $item_id * @param $args * * @return void */ function wp_kama_woocommerce_order_update_coupon_action( $id, $item_id, $args ){ // action... }
- $id
- -
- $item_id
- -
- $args
- -
Where the hook is called
woocommerce_order_update_coupon
woocommerce/includes/legacy/abstract-wc-legacy-order.php 209
do_action( 'woocommerce_order_update_coupon', $this->get_id(), $item->get_id(), $args );