is_object_in_taxonomy

Advertisement

Summery Summery

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

Syntax Syntax

is_object_in_taxonomy( string $object_type, string $taxonomy )

Parameters Parameters

$object_type

(Required) Object type string.

$taxonomy

(Required) Single taxonomy name.

Return Return

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

Source Source

File: wp-includes/taxonomy.php

		}
		if ( empty( $t['template'] ) ) {
			$t['template'] = $args['template'];
		}
		if ( empty( $t['term_template'] ) ) {
			$t['term_template'] = $args['term_template'];
		}

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply