Opened 9 months ago

Last modified 9 months ago

#21651 new enhancement

Add term_taxonomy_id to available fields in get_term_by

Reported by: jchristopher Owned by:
Priority: normal Milestone: Awaiting Review
Component: Taxonomy Version: 3.4.1
Severity: minor Keywords: has-patch dev-feedback
Cc: lol@…

Description

In my experience term_taxonomy_id has proven to be exponentially useful in a number of ways, specifically in prevention of same-id collisions of terms used in multiple taxonomies. I'd love to be able to grab a term object by passing along its term_taxonomy_id to get_term_by(). A recent change was made to WP_Query that provides this functionality, so I'm hoping this makes the cut as well.

Attachments (1)

get_term_by-term_taxonomy_id.patch (113.4 KB) - added by jchristopher 9 months ago.

Download all attachments as: .zip

Change History (2)

  • Cc lol@… added
  • Keywords dev-feedback added

+1!!!

Note: See TracTickets for help on using tickets.