[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
Mon Dec 1 15:58:57 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 theMikeD):

 The updated codex docs for this option. I noticed that it still made
 reference to the return of null with non-hierarchical tax, so that's
 fixed.

 Updated codex info for this option

 ----

 == Default Usage ==

 `'childless' => false,`

 ----

 == Possible Arguments ==

 childless
 (boolean) Returns terms that have no children if `taxonomy` is
 hierarchical, all terms if `taxonomy` is not hierarchical.

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


More information about the wp-trac mailing list