I'm using the following bit of code to get data from ACF to the additional info tab on the single product page. Now I need to add multiple of these labels with values. I tried a few things but I cant seem to figure out how to add more in this bit of code. I also need to add ' cm' behind the value that will get pulled because it is a dimension. But the first problem is the most important. Would appreciate!
function yourprefix_woocommerce_display_product_attributes($product_attributes, $product){
$product_attributes['customfield'] = [
'label' => __('Zithoogte', 'text-domain'),
'value' => get_post_meta($product->get_ID(), '_custom_meta_field1', true),
];
return $product_attributes;
}
add_filter('woocommerce_display_product_attributes','yourprefix_woocommerce_display_product_attributes', 10, 2);```