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

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

Check if Term exists.


Description

See also


Parameters

$term

(int|string) (Required) The term to check

$taxonomy

(string) (Optional) The taxonomy name to use

Default value: ''

$parent

(int) (Required) ID of parent term under which to confine the exists search.


Return

(mixed) Get the term id or Term Object, if exists.


Source

File: wp-includes/deprecated.php

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


Changelog

Changelog
Version Description
WP-3.0.0 Use term_exists()
WP-2.3.0 Introduced. This function has been deprecated. Use term_exists() instead.