I have a term_taxonomy_id — is there an API call to get the taxonomy?

I was pretty sure of this, but the answer is—at least for now—a definitive no. There isn’t an API call for it.

To double-check, I asked core developer Andrew Nacin about this on Twitter. His response:

term_taxonomy_id is, for the moment, essentially private. You should likely never have it to use it.

It might be worth posting a second question about whatever you’re doing or at least expanding on the particular situation that leads to this scenario, since your current problem is rather rare—and maybe unnecessary—in the first place. Again from Nacin:

I honestly don’t know when you’d ever have term_taxonomy_id and not also already be in a position to know term_id and taxonomy.


Addendum: It should also be noted that the taxonomy schema and meta relationships are slated to undergo some changes, so this may be a particularly dangerous time to try something outside the API.


Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)