Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




is_taxonomy_hierarchical [ WordPress Function ]

is_taxonomy_hierarchical ( $taxonomy )
Parameters:
  • (string) $taxonomy Name of taxonomy object
Uses:
Returns:
  • (bool) Whether the taxonomy is hierarchical
Defined at:



Whether the taxonomy object is hierarchical.

Checks to make sure that the taxonomy is an object first. Then Gets the object, and finally returns the hierarchical value in the object.

A false return value might also mean that the taxonomy does not exist.

Source


<?php
function is_taxonomy_hierarchical($taxonomy) {
    if ( ! 
taxonomy_exists($taxonomy) )
        return 
false;

    
$taxonomy get_taxonomy($taxonomy);
    return 
$taxonomy->hierarchical;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics