Get variation attribute based on product ID in WooCommerce