how to get woocommerce product attribute slug

I got this….

To get slug use:

$attributes = $_product->get_attributes();
$pa_color = $attributes["pa_color"];

Thanks to all for helping me.

Leave a Comment