WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/is object in taxonomy

Contents

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.