Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Canais Taxonomy

// Register Custom Taxonomy
function canais_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Canais', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Canal', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Canal', 'text_domain' ),
		'all_items'                  => __( 'Todos', 'text_domain' ),
		'parent_item'                => __( 'Anterior', 'text_domain' ),
		'parent_item_colon'          => __( 'Anterior:', 'text_domain' ),
		'new_item_name'              => __( 'Novo', 'text_domain' ),
		'add_new_item'               => __( 'Adicionar', 'text_domain' ),
		'edit_item'                  => __( 'Editar', 'text_domain' ),
		'update_item'                => __( 'Atualizar', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separe canais por vírgulas', 'text_domain' ),
		'search_items'               => __( 'Procurar', 'text_domain' ),
		'add_or_remove_items'        => __( 'Adicionar ou Remover', 'text_domain' ),
		'choose_from_most_used'      => __( 'Escolha dentre os mais usados', 'text_domain' ),
		'not_found'                  => __( 'Não encontrado', 'text_domain' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => false,
	);
	register_taxonomy( 'canais', array( 'series' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'canais_taxonomy', 0 );