我需要从woocommerce产品变异获得属性.
$terms = get_post_meta($value['variation_id'], 'attribute_pa_color', true);
这段代码给了我一个属性slug而不是name.我怎样才能获得属性名称?
非常感谢你提前!
php variables attributes slug woocommerce
attributes ×1
php ×1
slug ×1
variables ×1
woocommerce ×1