Summery Summery

Determines whether a taxonomy is considered “viewable”.

Syntax Syntax

is_taxonomy_viewable( string|WP_Taxonomy $taxonomy )

Parameters Parameters


(Required) Taxonomy name or object.

Return Return

(bool) Whether the taxonomy should be considered viewable.

Source Source

File: wp-includes/taxonomy.php

 * @since 4.1.0 Introduced the `$resource_type` argument.
 * @param int    $object_id     Optional. The ID of the object. Default 0.
 * @param string $object_type   Optional. The type of object for which we'll be retrieving
 *                              ancestors. Accepts a post type or a taxonomy name. Default empty.
 * @param string $resource_type Optional. Type of resource $object_type is. Accepts 'post_type'
 *                              or 'taxonomy'. Default empty.
 * @return int[] An array of IDs of ancestors from lowest to highest in the hierarchy.
function get_ancestors( $object_id = 0, $object_type = '', $resource_type = '' ) {


Changelog Changelog

Version Description
5.1.0 Introduced.


Leave a Reply