Is there a function that does something like:
is_in_taxonomy($term, $taxonomy)
Where it returns true if $taxonomy
has that $term
. ????
Thanks!
Is there a function that does something like:
is_in_taxonomy($term, $taxonomy)
Where it returns true if $taxonomy
has that $term
. ????
Thanks!
You must be logged in to post a comment.
You’re probably looking for
term_exists()
:$term
is required (obviously).Both
$taxonomy
and$parent
are optional, but if you want to determine if a specific taxonomy has a given term, just pass the registered taxonomy name via the$taxonomy
parameter.term_exists