Cart item key added to order item meta action
This commit is contained in:
parent
73fac5ffdd
commit
dd3ea63f89
|
@ -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() ) );
|
||||
|
||||
// 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