[wp-trac] [WordPress Trac] #43517: Adding support of default category term for custom taxonomies
WordPress Trac
noreply at wordpress.org
Tue Jul 7 17:08:57 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 TimothyBlynJacobs):
Hm, previously though calling `wp_set_object_terms()` with an empty array
would work though, no? It does the diffing and then calls
`wp_remove_object_terms`. That is how the REST API sets the terms for a
post and it looks like `wp_insert_post` as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43517#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list