WPDev.one
Core Function
View Source on Trac ↗

is_object_in_taxonomy()

is_object_in_taxonomy( mixed $object_type, mixed $taxonomy )

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

Parameters 2 required

Name / Type Description
$object_type
string

Object type string.

Required
$taxonomy
string

Single taxonomy name.

Required

Return Value

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

Function Information

Since Version
3.0.0
Source File
wp-includes/taxonomy.php
Advertisement