Switch language

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




post_type_supports [ WordPress Function ]

post_type_supports ( $post_type, $feature )
Parameters:
  • (string) $post_type The post type being checked
  • (string) $feature the feature being checked
Returns:
  • (boolean)
Defined at:



Checks a post type's support for a given feature

Source


<?php
function post_type_supports$post_type$feature ) {
    global 
$_wp_post_type_features;

    if ( !isset( 
$_wp_post_type_features[$post_type][$feature] ) )
        return 
false;

    
// If no args passed then no extra checks need be performed
    
if ( func_num_args() <= )
        return 
true;

    
// @todo Allow pluggable arg checking
    //$args = array_slice( func_get_args(), 2 );

    
return true;
}
?>

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