WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/is object in taxonomy

Description

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

Usage

is_object_in_taxonomy($object_type, $taxonomy);

Parameters

$object_type
(string) (required) Object type string
Default: None
$taxonomy
(string) (required) Single taxonomy name
Default: None

Return Values

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

Change Log

Source File

is_object_in_taxonomy() is located in wp-includes/taxonomy.php.

Related

See also index of Function Reference and index of Template Tags.