From f0aa493a9872135305ef8aadce8425644431a43f Mon Sep 17 00:00:00 2001 From: Manos Psychogyiopoulos Date: Sun, 18 Dec 2016 18:39:37 +0200 Subject: [PATCH] order id omitted from woocommerce_add_shipping_order_item args --- includes/class-wc-checkout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 74c343c2ac7..faff05f706b 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -336,7 +336,7 @@ class WC_Checkout { foreach ( $order->get_items( 'shipping' ) as $item_id => $item ) { $packages = WC()->shipping->get_packages(); if ( isset( $item->package_key ) ) { - do_action( 'woocommerce_add_shipping_order_item', $item_id, $item->package_key ); + do_action( 'woocommerce_add_shipping_order_item', $order_id, $item_id, $item->package_key ); } }