wp_set_object_terms() — prevent overwrite?

wp_set_object_terms() has a fourth argument called append. Setting that to true during the call should add the term without unsetting the already set terms.

wp_set_object_terms( $post_id, 'add_this_term', 'in_this_taxonomy', true);

Leave a Comment

tech