Get the product variations attributes values term ID and name
问题 In WooCommerce, I'm using $product->get_variation_attributes() to get the variations attributes for a product. This function returns an array with the names without the ID's. Like this: [pa_color-shirt] => Array ( [0] => red [7] => grey [14] => yellow ) [pa_color-sweater] => Array ( [0] => red [1] => green [2] => blue [3] => grey [4] => yellow [5] => pink [6] => dark-blue ) For the AJAX shop I'm creating I also need the ID's from the variations. So I can append the Id's and the names to the