Function: is_object_in_taxonomy

is_object_in_taxonomy( string $object_type, string $taxonomy )

Determine if the given object type is associated with the given taxonomy.

Shortcut: ioit

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
$object_type string

Object type string.

$taxonomy string

Single taxonomy name.



True if object is associated with the taxonomy, otherwise false.

WordPress Developer Newsletter

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