Hot answers tagged woocommerce
get_terms() accept an array of arguments as second parameter. One of those parameters are include include (integer) An array of term ids to include. Empty returns all. You already have your selected term ids in an array, so just simply pass them to the include parameter in the array of arguments in get_terms() $terms = get_terms( $taxonomy, ...
Only top voted, non community-wiki answers of a minimum length are eligible