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:
Mike Jolley 2013-05-31 05:12:38 -07:00
commit 7c2026e883
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
}