is_object_in_taxonomy( string $object_type, string $taxonomy ): bool

In this article

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

Parameters

$object_typestringrequired
Object type string.
$taxonomystringrequired
Single taxonomy name.

Return

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

Source

}

/**
 * Determines if the given object type is associated with the given taxonomy.
 *
 * @since 3.0.0
 *

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.