Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

[EDU] Tipos

// Register Custom Taxonomy
function tipo_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Tipos', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Tipo', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Tipo', 'text_domain' ),
		'all_items'                  => __( 'Todos', 'text_domain' ),
		'parent_item'                => __( 'Ascendente', 'text_domain' ),
		'parent_item_colon'          => __( 'Ascendente:', 'text_domain' ),
		'new_item_name'              => __( 'Novo', 'text_domain' ),
		'add_new_item'               => __( 'Novo', 'text_domain' ),
		'edit_item'                  => __( 'Editar', 'text_domain' ),
		'update_item'                => __( 'Atualizar', 'text_domain' ),
		'view_item'                  => __( 'Ver', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separe com vírgulas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Adicionar ou remover', 'text_domain' ),
		'choose_from_most_used'      => __( 'Escolher entre mais usados', 'text_domain' ),
		'popular_items'              => __( 'Populares', 'text_domain' ),
		'search_items'               => __( 'Buscar', 'text_domain' ),
		'not_found'                  => __( 'Não encontrado', 'text_domain' ),
		'no_terms'                   => __( 'Nenhum item', 'text_domain' ),
		'items_list'                 => __( 'Listagem', 'text_domain' ),
		'items_list_navigation'      => __( 'Navegação', 'text_domain' ),
	);
	$rewrite = array(
		'slug'                       => 'tipo',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'tipo', array( 'linha-de-pesquisa', 'grupo-de-pesquisa', 'professor' ), $args );

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