Repetitive and ambiguous hooks found in the add/update/delete order item process
-
I attempted to utilize action hooks for adding, updating, and deleting order items, but it proved to be perplexing.
In wc-order-item-functions.php is this hooks:
do_action( 'woocommerce_new_order_item', $item_id, $item, $order_id ); do_action( 'woocommerce_update_order_item', $item_id, $args ); do_action( 'woocommerce_delete_order_item', $item_id );
In abstract-wc-order-item-type-data-store.php is this hooks:
do_action( 'woocommerce_new_order_item', $item->get_id(), $item, $item->get_order_id() ); do_action( 'woocommerce_update_order_item', $item->get_id(), $item, $item->get_order_id() ); do_action( 'woocommerce_delete_order_item', $item->get_id() );
Why these are duplicate? I think is a bug!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Repetitive and ambiguous hooks found in the add/update/delete order item process’ is closed to new replies.