parent
928aaa361a
commit
afca32a31b
|
@ -109,6 +109,7 @@ class WC_Order_Item_Meta {
|
|||
|
||||
$formatted_meta = array();
|
||||
|
||||
if ( ! empty( $this->item['item_meta_array'] ) ) {
|
||||
foreach ( $this->item['item_meta_array'] as $meta_id => $meta ) {
|
||||
if ( "" === $meta->value || is_serialized( $meta->value ) || ( ! empty( $hideprefix ) && substr( $meta->key, 0, 1 ) == $hideprefix ) ) {
|
||||
continue;
|
||||
|
@ -130,6 +131,7 @@ class WC_Order_Item_Meta {
|
|||
'value' => apply_filters( 'woocommerce_order_item_display_meta_value', $meta->value ),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return apply_filters( 'woocommerce_order_items_meta_get_formatted', $formatted_meta, $this );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue