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

WordPress Trac noreply at wordpress.org
Thu May 25 08:58:10 UTC 2023


#36654: New function `has_terms`
-------------------------------------------------+-------------------------
 Reporter:  sebastian.pisula                     |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Taxonomy                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests           |     Focuses:
  reporter-feedback                              |
-------------------------------------------------+-------------------------

Comment (by Mte90):

 So after all these years, I don't think that this function is needed.

 https://developer.wordpress.org/reference/functions/has_term/

 Has_term support as parameter an array, so it is possible to specify
 multiple terms.

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


More information about the wp-trac mailing list