Switch language

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




is_post_type_hierarchical [ WordPress Function ]

is_post_type_hierarchical ( $post_type )
Parameters:
  • (string) $post_type Post type name
See:
Returns:
  • (bool) Whether post type is hierarchical.
Defined at:



Whether the post type is hierarchical.

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

Source


<?php
function is_post_type_hierarchical$post_type ) {
    if ( ! 
post_type_exists$post_type ) )
        return 
false;

    
$post_type get_post_type_object$post_type );
    return 
$post_type->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