Merge pull request #24108 from aelia-co/Tweak-Improve_woocommerce_ajax_order_item_filter
Added arguments to filter `woocommerce_ajax_order_item`
This commit is contained in:
commit
6fd836d299
|
@ -900,7 +900,7 @@ class WC_AJAX {
|
||||||
}
|
}
|
||||||
|
|
||||||
$item_id = $order->add_product( $product, $qty );
|
$item_id = $order->add_product( $product, $qty );
|
||||||
$item = apply_filters( 'woocommerce_ajax_order_item', $order->get_item( $item_id ), $item_id );
|
$item = apply_filters( 'woocommerce_ajax_order_item', $order->get_item( $item_id ), $item_id, $order, $product );
|
||||||
$added_items[ $item_id ] = $item;
|
$added_items[ $item_id ] = $item;
|
||||||
$order_notes[ $item_id ] = $product->get_formatted_name();
|
$order_notes[ $item_id ] = $product->get_formatted_name();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue