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:
Claudio Sanches 2019-07-09 10:58:54 -03:00 committed by GitHub
commit 6fd836d299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -900,7 +900,7 @@ class WC_AJAX {
}
$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;
$order_notes[ $item_id ] = $product->get_formatted_name();