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
This commit is contained in:
Chunkford 2017-06-10 16:05:02 +01:00 committed by GitHub
parent e2a73bbee9
commit 49353d5c6e
1 changed files with 1 additions and 1 deletions

View File

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