diff --git a/includes/class-wc-order-item.php b/includes/class-wc-order-item.php index 3a39348a3d6..cc57147c6d4 100644 --- a/includes/class-wc-order-item.php +++ b/includes/class-wc-order-item.php @@ -294,7 +294,7 @@ class WC_Order_Item extends WC_Data implements ArrayAccess { $return = array(); foreach ( $this->meta_data as $meta ) { - $return[ $meta->id ] = $meta; + $return[ $meta->key ] = $meta; } return $return;