#21651 closed enhancement (fixed)
Add term_taxonomy_id to available fields in get_term_by
Reported by: | jchristopher | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | minor | Version: | 3.4.1 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
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 (3)
Change History (13)
#2
in reply to:
↑ description
@
11 years ago
+1!!!
this commit is extremely usefull! please pull it! :D
#3
@
11 years ago
- Keywords dev-feedback removed
- Milestone changed from Awaiting Review to 3.7
Patch still applies
#4
@
11 years ago
- Owner set to wonderboymusic
- Resolution set to fixed
- Status changed from new to closed
In 25334:
#7
@
11 years ago
I guess you could get it from the term, would have to branch the SQL and all that noise.
#8
@
11 years ago
Yeah, I know it's not a "oh hey just add = ''
and done thing. Just seems of limited use otherwise.
+1!!!