taxonomy_exists()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
taxonomy_exists( string $taxonomy ): bool
Описание
Ранее is_taxonomy() , появилась в 2.3.0.
Подробнее об этой и похожих функциях тем можно узнать в статье о Conditional Tags в Theme Developer Handbook.
Оригинал (английский)
Formerly is_taxonomy() , introduced in 2.3.0.
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
Параметры
$taxonomy
string
обязательный
Возвращаемое значение
bool
Исходный код
wp-includes/taxonomy.php:376
function taxonomy_exists( $taxonomy ) {
global $wp_taxonomies;
return is_string( $taxonomy ) && isset( $wp_taxonomies[ $taxonomy ] );
}
История изменений
| Версия | Описание |
|---|---|
| 3.0.0 | Introduced. |

