Uses
Uses | Description |
---|---|
wp-includes/taxonomy.php: get_taxonomy() | Retrieves the taxonomy object of $taxonomy. |
Determines whether a taxonomy is considered “viewable”.
(string|WP_Taxonomy) (Required) Taxonomy name or object.
(bool) Whether the taxonomy should be considered viewable.
File: wp-includes/taxonomy.php
function is_taxonomy_viewable( $taxonomy ) { if ( is_scalar( $taxonomy ) ) { $taxonomy = get_taxonomy( $taxonomy ); if ( ! $taxonomy ) { return false; } } return $taxonomy->publicly_queryable; }
Version | Description |
---|---|
5.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_taxonomy_viewable