Is there a handy API function to find a taxonomy term ID from the taxonomy term? I have a vague recollection of doing it somehow in Drupal way back when, but can't remember the details.

Thanks for any help!

Accepted answer

That is the way. taxonomy_term_load_multiple_by_name is what you need.

Comments

I did some searching and I think the function I used long ago was taxonomy_get_term_by_name. I checked the Backdrop API reference and that appears to be deprecated in favor of taxonomy_term_load_multiple_by_name.

I suppose that's what I should use then?

That is the way. taxonomy_term_load_multiple_by_name is what you need.