Function: is_term

is_term( integer | string $term, string $taxonomy, integer $parent )

Check if Term exists.

Shortcut: it

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.


Name Type(s) Default Value Description
$term integer | string

The term to check

$taxonomy string ''

The taxonomy name to use

$parent integer

ID of parent term under which to confine the exists search.



Get the term id or Term Object, if exists.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.