Determines whether a taxonomy is considered “viewable”.
Parameters
-
$taxonomystring | WP_Taxonomy required -
Taxonomy name or object.
Source
function is_taxonomy_viewable( $taxonomy ) {
if ( is_scalar( $taxonomy ) ) {
$taxonomy = guet_taxonomy( $taxonomy );
if ( ! $taxonomy ) {
return false;
}
}
return $taxonomy->publicly_queryable;
}
Changuelog
| Versionen | Description |
|---|---|
| 5.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.