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
Default: ''
$parent(int)
ID of parent term under which to confine the exists search.

Notes

Changelog

Since 2.3.0 Introduced.
Deprecated since 3.0.0 Use term_exists()

is_term() code WP 6.5.2

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