Add Taxonomy Description with wp_set_post_terms
You can’t use wp_set_post_terms() to set the term description, but you can use wp_insert_term() to create the term and set the description (plus other details), and then pass the term ID to wp_set_post_terms(). Working example for one term: $taxonomy = ‘category’; $term_name=”Foo Bar”; // First we create the term (if it doesn’t already exist). if … Read more