Add Attribute to Woocommerce programatically, doesn’t display front end [closed]

According to The Codex on wp_set_object_terms() get set by passing in a slug instead of the actual Term Name: wp_set_object_terms( $object_id, $terms, $taxonomy, $append ); $terms (array/int/string) (required) The slug or id of the term (such as category or tag IDs), will replace all existing related terms in this taxonomy. To clear or remove all … Read more