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:
parent
894c77b0f7
commit
6326bd1f98
|
@ -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 ) ) ),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue