wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



post_type_supports › WordPress Function

Da3.0.0
Deprecaton/a
post_type_supports ( $post_type, $feature )
Parametri: (2)
  • (string) $post_type The post type being checked.
    Richiesto:
  • (string) $feature The feature being checked.
    Richiesto:
Ritorna:
  • (bool) Whether the post type supports the given feature.
Definito a:
Codex:

Checks a post type's support for a given feature.



Sorgenti

function post_type_supports( $post_type, $feature ) {
	global $_wp_post_type_features;

	return ( isset( $_wp_post_type_features[ $post_type ][ $feature ] ) );
}