Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Tipo – Categoria

Categoria para Posts de Download

if ( ! function_exists( 'tipo_download' ) ) {

// Register Custom Taxonomy
function tipo_download() {

	$labels = array(
		'name'                       => _x( 'Tipos', 'Taxonomy General Name', 'tipo_download' ),
		'singular_name'              => _x( 'Tipo', 'Taxonomy Singular Name', 'tipo_download' ),
		'menu_name'                  => __( 'Tipo', 'tipo_download' ),
		'all_items'                  => __( 'Todos', 'tipo_download' ),
		'parent_item'                => __( 'Tipo', 'tipo_download' ),
		'parent_item_colon'          => __( 'Tipos', 'tipo_download' ),
		'new_item_name'              => __( 'Adicionar', 'tipo_download' ),
		'add_new_item'               => __( 'Adicionar', 'tipo_download' ),
		'edit_item'                  => __( 'Editar', 'tipo_download' ),
		'update_item'                => __( 'Atualizar', 'tipo_download' ),
		'view_item'                  => __( 'Ver Tipo', 'tipo_download' ),
		'separate_items_with_commas' => __( 'Separe os Itens com Vírgulas', 'tipo_download' ),
		'add_or_remove_items'        => __( 'Adicionar/Remover', 'tipo_download' ),
		'choose_from_most_used'      => __( 'Escolher Entre os Mais Usados', 'tipo_download' ),
		'popular_items'              => __( 'Tipos Populares', 'tipo_download' ),
		'search_items'               => __( 'Pesquisar Tipo', 'tipo_download' ),
		'not_found'                  => __( 'Curso Não Encontrado', 'tipo_download' ),
		'no_terms'                   => __( 'Sem Tipo', 'tipo_download' ),
		'items_list'                 => __( 'Lista de Tipos', 'tipo_download' ),
		'items_list_navigation'      => __( 'Lista de Navegação', 'tipo_download' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => false,
		'query_var'                  => 'tipo_download',
		'show_in_rest'               => true,
	);
	register_taxonomy( 'tipo_donwload', array( 'downloads' ), $args );

}
add_action( 'init', 'tipo_download', 0 );

}