Uma área de pesquisa sobre o WordPress para devs e autores do tema



post_type_supports ›

Desde3.0.0
Obsoleton/a
post_type_supports ( $post_type, $feature )
Parâmetros: (2)
  • (string) $post_type The post type being checked.
    Required: Yes
  • (string) $feature The feature being checked.
    Required: Yes
Retorna:
  • (bool) Whether the post type supports the given feature.
Definido em:
Codex:

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



Fonte

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

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