[wp-trac] [WordPress Trac] #15675: Add a "parent" criteria to wp_get_object_terms()

WordPress Trac noreply at wordpress.org
Fri Jan 23 14:55:17 UTC 2015


#15675: Add a "parent" criteria to wp_get_object_terms()
-------------------------------------+------------------
 Reporter:  mikeschinkel             |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  4.2
Component:  Taxonomy                 |     Version:  3.1
 Severity:  normal                   |  Resolution:
 Keywords:  needs-refresh has-patch  |     Focuses:
-------------------------------------+------------------
Changes (by boonebgorges):

 * milestone:  Future Release => 4.2


Comment:

 Regarding the specific request here ('parent' support for
 `wp_get_object_terms()`): yes, we can do this pretty easily.

 More generally, the request reminds me of some previous tickets (eg
 #18106) that have to do with feature parity between `get_terms()` and
 `wp_get_object_terms()`. The two functions have different use cases, but
 there's no reason why `wp_get_object_terms()` shouldn't support many of
 the arguments supported by `get_terms()`. I've opened #31105 for
 consideration of this broader issue.

 In the meantime, I think it's fine to duct tape a fix for 'parent'.

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


More information about the wp-trac mailing list