admin管理员组文章数量:1404460
The WP_Term::get_instance()
method, used by get_term()
and presumably other core API functions, accepts an optional $taxonomy
arg that is "only used for disambiguating potentially shared terms."
What is the use case for sharing terms like this? Is it possible to share a term between taxonomies with base WordPress functionality alone, without implementing custom hooks?
The WP_Term::get_instance()
method, used by get_term()
and presumably other core API functions, accepts an optional $taxonomy
arg that is "only used for disambiguating potentially shared terms."
What is the use case for sharing terms like this? Is it possible to share a term between taxonomies with base WordPress functionality alone, without implementing custom hooks?
Share Improve this question asked Jan 26, 2020 at 18:29 acobsteracobster 1231 silver badge10 bronze badges1 Answer
Reset to default 0The helpful folks on WordPress IRC pointed me to this article, which answered my question:
https://make.wordpress/core/2015/02/16/taxonomy-term-splitting-in-4-2-a-developer-guide/
In WordPress 4.2, shared taxonomy terms – those items in the wp_terms table that are shared between multiple taxonomies – will be split into separate terms when one of the shared terms is updated. This change (31418) fixes one of WordPress’s most irksome bugs, and is a critical step in our ongoing taxonomy roadmap.
Furthermore:
The vast majority of terms are not shared between taxonomies; shared terms themselves are an odd edge case.
So basically, this use-case has not been supported for a long time, and was rare to begin with.
本文标签: taxonomyWhat is the use case for sharing a term between multiple taxonomies
版权声明:本文标题:taxonomy - What is the use case for sharing a term between multiple taxonomies? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744802719a2625960.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论