Pass more arguments to woocommerce_new_order_item
This commit is contained in:
parent
e7a0324b7c
commit
eda7961bfa
|
@ -1928,7 +1928,7 @@ function woocommerce_add_order_item( $order_id, $item ) {
|
||||||
|
|
||||||
$item_id = absint( $wpdb->insert_id );
|
$item_id = absint( $wpdb->insert_id );
|
||||||
|
|
||||||
do_action( 'woocommerce_new_order_item', $item_id );
|
do_action( 'woocommerce_new_order_item', $item_id, $item, $order_id );
|
||||||
|
|
||||||
return $item_id;
|
return $item_id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue