[wp-trac] [WordPress Trac] #43517: Adding support of default category term for custom taxonomies

WordPress Trac noreply at wordpress.org
Tue Jul 7 17:05:09 UTC 2020


#43517: Adding support of default category term for custom taxonomies
--------------------------------------+------------------------
 Reporter:  enrico.sorcinelli         |       Owner:  whyisjake
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.5
Component:  Taxonomy                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  dev-feedback needs-patch  |     Focuses:
--------------------------------------+------------------------

Comment (by enrico.sorcinelli):

 I've just uploaded a refreshed patch.
 @TimothyBlynJacobs If I understood your question, as far I know, it is
 possible with `wp_delete_object_term_relationships()` that that uses
 `wp_remove_object_terms()` behind the scenes.
 The default term is added with `wp_set_object_terms()` instead.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43517#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list