WordPress at a glance
function is not described

is_taxonomy_viewable() WP 5.1.0

Determines whether a taxonomy is considered "viewable".

No Hooks.

Return

true/false. Whether the taxonomy should be considered viewable.

Usage

is_taxonomy_viewable( $taxonomy );
$taxonomy(string/WP_Taxonomy) (required)
Taxonomy name or object.

Changelog

Since 5.1.0 Introduced.

Code of is_taxonomy_viewable() WP 5.5.1

<?php
function is_taxonomy_viewable( $taxonomy ) {
	if ( is_scalar( $taxonomy ) ) {
		$taxonomy = get_taxonomy( $taxonomy );
		if ( ! $taxonomy ) {
			return false;
		}
	}

	return $taxonomy->publicly_queryable;
}