is_term()WP 2.3.0

Устарела с версии 3.0.0. Больше не поддерживается и может быть удалена. Используйте term_exists().

Check if Term exists.

Хуков нет.

Возвращает

Разное. Get the term ID or term object, if exists.

Использование

is_term( $term, $taxonomy, $parent );
$term(int|строка) (обязательный)
The term to check
$taxonomy(строка)
The taxonomy name to use
По умолчанию: ''
$parent(int)
ID of parent term under which to confine the exists search.

Заметки

Список изменений

С версии 2.3.0 Введена.
Устарела с 3.0.0 Use term_exists()

Код is_term() WP 6.4.3

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