[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
Sat Nov 15 18:44:58 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:  Awaiting Review
Component:  Taxonomy                  |     Version:  4.0
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+------------------------------

Comment (by theMikeD):

 This is the proposed addition to the get_terms documentation. I don't know
 how to do a diff on a doc so I'll just describe the changes.

 ----

 == Default Usage ==

 `'children_only' => false,`

 ----

 == Possible Arguments ==

 children_only
 (boolean) The opposite of `parent`: returns terms that have no children.
 Null if taxonomy is not hierarchical.

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


More information about the wp-trac mailing list