package not passed in woocommerce_add_shipping_order_item action

This commit is contained in:
Manos Psychogyiopoulos 2016-12-18 18:36:04 +02:00
parent 3a8eae195b
commit 7751264a2a
1 changed files with 1 additions and 2 deletions

View File

@ -335,8 +335,7 @@ class WC_Checkout {
foreach ( $order->get_items( 'shipping' ) as $item_id => $item ) {
$packages = WC()->shipping->get_packages();
if ( isset( $item->package_key ) && isset( $packages[ $item->package_key ] ) ) {
$package = $packages[ $item->package_key ];
if ( isset( $item->package_key ) ) {
do_action( 'woocommerce_add_shipping_order_item', $item_id, $item->package_key );
}
}