I need to get an attribute from a product change in woocommerce.
$terms = get_post_meta($value['variation_id'], 'attribute_pa_color', true);
This code gives me the slug attribute instead of the name. How to get attribute name?
Thank you so much in advance!
variables php attributes slug woocommerce
Pupik
source share