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



get_all_post_type_supports › WordPress Function

Desde3.4.0
Obsoleton/a
get_all_post_type_supports ( $post_type )
Parâmetros:
  • (string) $post_type The post type.
    Required: Yes
Retorna:
  • (array) Post type supports list.
Definido em:
Codex:

Gets all the post type features



Fonte

function get_all_post_type_supports( $post_type ) {
	global $_wp_post_type_features;

	if ( isset( $_wp_post_type_features[ $post_type ] ) ) {
		return $_wp_post_type_features[ $post_type ];
	}

	return array();
}