Create class-wc-order-item.php

Add extra data to `woocommerce_order_item_display_meta_key` and `woocommerce_order_item_display_meta_value` hooks
This commit is contained in:
Chunkford 2017-06-10 13:26:43 +01:00 committed by GitHub
parent 894c77b0f7
commit 6326bd1f98
1 changed files with 2 additions and 2 deletions

View File

@ -206,8 +206,8 @@ class WC_Order_Item extends WC_Data implements ArrayAccess {
$formatted_meta[ $meta->id ] = (object) array(
'key' => $meta->key,
'value' => $meta->value,
'display_key' => apply_filters( 'woocommerce_order_item_display_meta_key', $display_key ),
'display_value' => wpautop( make_clickable( apply_filters( 'woocommerce_order_item_display_meta_value', $display_value ) ) ),
'display_key' => apply_filters( 'woocommerce_order_item_display_meta_key', $display_key, $meta, $this ),
'display_value' => wpautop( make_clickable( apply_filters( 'woocommerce_order_item_display_meta_value', $display_value, $meta, $this ) ) ),
);
}