is_taxonomy()
Устарела с версии 3.0.0. Больше не поддерживается и может быть удалена. Используйте taxonomy_exists().
Checks that the taxonomy name exists.
Хуков нет.
Возвращает
bool. Whether the taxonomy exists.
Использование
is_taxonomy( $taxonomy );
- $taxonomy(строка) (обязательный)
- Name of taxonomy object.
Заметки
| Смотрите: taxonomy_exists() |
Список изменений
| С версии 2.3.0 | Введена. |
| Устарела с 3.0.0 | Use taxonomy_exists() |
Код is_taxonomy() is taxonomy WP 7.1.3
function is_taxonomy( $taxonomy ) {
_deprecated_function( __FUNCTION__, '3.0.0', 'taxonomy_exists()' );
return taxonomy_exists( $taxonomy );
}