[wp-trac] [WordPress Trac] #29839: Enhance get_terms to return only bottom child terms (terms without children) when taxonomy is heirarchical

WordPress Trac noreply at wordpress.org
Sun Nov 23 15:30:41 UTC 2014


#29839: Enhance get_terms to return only bottom child terms (terms without
children) when taxonomy is heirarchical
---------------------------------+-----------------------------
 Reporter:  theMikeD             |       Owner:
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Taxonomy             |     Version:  4.0
 Severity:  normal               |  Resolution:
 Keywords:  4.2-early has-patch  |     Focuses:
---------------------------------+-----------------------------

Comment (by valendesigns):

 @theMikeD From what I can tell, you've only added the ability to display
 the bottom level and not the parent tree if you pass in an ID. Shouldn't
 this truly be the opposite of `parent`? For example, the docs would read
 like this if it were:

 > '''child'''
 > (''integer'') Get direct parents of this term (only terms whose explicit
 child is this value). If 0 is passed, only bottom-level terms are
 returned. Default is an empty string.

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


More information about the wp-trac mailing list