Merge pull request #3184 from franticpsyx/checkout_oder_items_action
Adde cart item key to woocommerce_add_order_item_meta action
This commit is contained in:
commit
7c2026e883
|
@ -278,7 +278,7 @@ class WC_Checkout {
|
||||||
woocommerce_add_order_item_meta( $item_id, apply_filters( 'woocommerce_backordered_item_meta_name', __( 'Backordered', 'woocommerce' ), $cart_item_key, $order_id ), $values['quantity'] - max( 0, $_product->get_total_stock() ) );
|
woocommerce_add_order_item_meta( $item_id, apply_filters( 'woocommerce_backordered_item_meta_name', __( 'Backordered', 'woocommerce' ), $cart_item_key, $order_id ), $values['quantity'] - max( 0, $_product->get_total_stock() ) );
|
||||||
|
|
||||||
// Allow plugins to add order item meta
|
// Allow plugins to add order item meta
|
||||||
do_action( 'woocommerce_add_order_item_meta', $item_id, $values );
|
do_action( 'woocommerce_add_order_item_meta', $item_id, $values, $cart_item_key );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue