You appear to be a bot. Output may be restricted
Description
Determine if the given object type is associated with the given taxonomy.
Usage
$bool = is_object_in_taxonomy( $object_type, $taxonomy );
Parameters
- $object_type
- ( string ) required – Object type string.
- $taxonomy
- ( string ) required – Single taxonomy name.
Returns
bool True if object is associated with the taxonomy, otherwise false.
Source
File name: wordpress/wp-includes/taxonomy.php
Lines:
1 to 7 of 7
function is_object_in_taxonomy( $object_type, $taxonomy ) { $taxonomies = get_object_taxonomies( $object_type ); if ( empty( $taxonomies ) ) { return false; } return in_array( $taxonomy, $taxonomies, true ); }