is_term( int|string $term, string $taxonomy = , int $parent ): mixed

This function has been deprecated. Use term_exists() instead.

Check if Term exists.

Description

See also

Parameters

$termint|stringrequired
The term to check
$taxonomystringoptional
The taxonomy name to use

Default:''

$parentintrequired
ID of parent term under which to confine the exists search.

Return

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

Source

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

Changelog

VersionDescription
3.0.0Use term_exists()
2.3.0Introduced.

User Contributed Notes

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