package not passed in woocommerce_add_shipping_order_item action
This commit is contained in:
parent
3a8eae195b
commit
7751264a2a
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue