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