From 49353d5c6e2b5454a5eb9333c0e79c4182c3a256 Mon Sep 17 00:00:00 2001 From: Chunkford Date: Sat, 10 Jun 2017 16:05:02 +0100 Subject: [PATCH] Create class-wc-order-item-meta.php Add extra data to the second occurrence of the 'woocommerce_order_item_display_meta_value' hook so it matches the change done in https://github.com/woocommerce/woocommerce/pull/15551 --- includes/class-wc-order-item-meta.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-order-item-meta.php b/includes/class-wc-order-item-meta.php index 09743db208e..72f5b693f5a 100644 --- a/includes/class-wc-order-item-meta.php +++ b/includes/class-wc-order-item-meta.php @@ -135,7 +135,7 @@ class WC_Order_Item_Meta { $formatted_meta[ $meta_id ] = array( 'key' => $meta->key, 'label' => wc_attribute_label( $attribute_key, $this->product ), - 'value' => apply_filters( 'woocommerce_order_item_display_meta_value', $meta_value ), + 'value' => apply_filters( 'woocommerce_order_item_display_meta_value', $meta_value, $meta, $this->item ), ); } }