I'm trying to retrieve the product attributes of a WooCommerce product using this:
$m = get_post_meta($pid, '_product_attributes', false);
Where $pid is the ID of my product.
It partially works, but it doesn't return the value of the attributes. I have size and color set on the wp-admin...
[pa_size] => Array
(
[name] => pa_size
[value] =>
[position] => 0
[is_visible] => 1
[is_variation] => 1
[is_taxonomy] => 1
)
[pa_color] => Array
(
[name] => pa_color
[value] =>
[position] => 1
[is_visible] => 1
[is_variation] => 1
[is_taxonomy] => 1
)
Any idea?