WordPress at a glance
function is not described

is_term() WP 2.3.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use term_exists() instead.

Check if Term exists.

No Hooks.

Return

Mixed. Get the term ID or term object, if exists.

Usage

is_term( $term, $taxonomy, $parent );
$term(int|string) (required)
The term to check
$taxonomy(string)
The taxonomy name to use
$parent(int)
ID of parent term under which to confine the exists search.

Notes

  • See: term_exists()

Changelog

Since 2.3.0 Introduced.
Deprecated Since 3.0.0 Use term_exists()

Code of is_term() WP 5.7

<?php
function is_term( $term, $taxonomy = '', $parent = 0 ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'term_exists()' );
	return term_exists( $term, $taxonomy, $parent );
}