[wp-trac] [WordPress Trac] #36654: New function `has_terms`

WordPress Trac noreply at wordpress.org
Sun Apr 24 10:10:35 UTC 2016


#36654: New function `has_terms`
------------------------------+-----------------------------
 Reporter:  sebastian.pisula  |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Taxonomy          |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 I suggest add new function:

 {{{
 if(has_terms('category')) {
 the_terms(x, 'category');
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36654>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list