is_term

The timeline below displays how wordpress function is_term has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Check if Term exists.
 *
 * @since 2.3.0
 * @deprecated 3.0.0 Use term_exists()
 * @see term_exists()
 *
 * @param int|string $term The term to check
 * @param string $taxonomy The taxonomy name to use
 * @param int $parent ID of parent term under which to confine the exists search.
 * @return mixed Get the term ID or term object, if exists.
 */
function is_term($term, $taxonomy = '', $parent = 0)
{
    _deprecated_function(__FUNCTION__, '3.0.0', 'term_exists()');
    return term_exists($term, $taxonomy, $parent);
}

WordPress Version: 4.6

/**
 * Check if Term exists.
 *
 * @since 2.3.0
 * @deprecated 3.0.0 Use term_exists()
 * @see term_exists()
 *
 * @param int|string $term The term to check
 * @param string $taxonomy The taxonomy name to use
 * @param int $parent ID of parent term under which to confine the exists search.
 * @return mixed Get the term id or Term Object, if exists.
 */
function is_term($term, $taxonomy = '', $parent = 0)
{
    _deprecated_function(__FUNCTION__, '3.0.0', 'term_exists()');
    return term_exists($term, $taxonomy, $parent);
}

WordPress Version: 4.4

/**
 * Check if Term exists.
 *
 * @since 2.3.0
 * @deprecated 3.0.0 Use term_exists()
 * @see term_exists()
 *
 * @param int|string $term The term to check
 * @param string $taxonomy The taxonomy name to use
 * @param int $parent ID of parent term under which to confine the exists search.
 * @return mixed Get the term id or Term Object, if exists.
 */
function is_term($term, $taxonomy = '', $parent = 0)
{
    _deprecated_function(__FUNCTION__, '3.0', 'term_exists()');
    return term_exists($term, $taxonomy, $parent);
}

WordPress Version: 3.7

/**
 * Check if Term exists.
 *
 * @since 2.3.0
 * @deprecated 3.0.0
 * @deprecated Use term_exists()
 * @see term_exists()
 *
 * @param int|string $term The term to check
 * @param string $taxonomy The taxonomy name to use
 * @param int $parent ID of parent term under which to confine the exists search.
 * @return mixed Get the term id or Term Object, if exists.
 */
function is_term($term, $taxonomy = '', $parent = 0)
{
    _deprecated_function(__FUNCTION__, '3.0', 'term_exists()');
    return term_exists($term, $taxonomy, $parent);
}