Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Tipo de evento

// Register Custom Taxonomy
function custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Tipos de evento', 'Taxonomy General Name', 'tooltyp-theme' ),
		'singular_name'              => _x( 'Tipo de evento', 'Taxonomy Singular Name', 'tooltyp-theme' ),
		'menu_name'                  => __( 'Tipo de evento', 'tooltyp-theme' ),
		'all_items'                  => __( 'Todos', 'tooltyp-theme' ),
		'parent_item'                => __( '', 'tooltyp-theme' ),
		'parent_item_colon'          => __( '', 'tooltyp-theme' ),
		'new_item_name'              => __( 'Nuevo Tipo de evento', 'tooltyp-theme' ),
		'add_new_item'               => __( 'Añadir Tipo de evento', 'tooltyp-theme' ),
		'edit_item'                  => __( 'Editar', 'tooltyp-theme' ),
		'update_item'                => __( 'Actualizar', 'tooltyp-theme' ),
		'view_item'                  => __( 'Ver', 'tooltyp-theme' ),
		'separate_items_with_commas' => __( '', 'tooltyp-theme' ),
		'add_or_remove_items'        => __( '', 'tooltyp-theme' ),
		'choose_from_most_used'      => __( '', 'tooltyp-theme' ),
		'popular_items'              => __( '', 'tooltyp-theme' ),
		'search_items'               => __( '', 'tooltyp-theme' ),
		'not_found'                  => __( 'Not Found', 'tooltyp-theme' ),
		'no_terms'                   => __( '', 'tooltyp-theme' ),
		'items_list'                 => __( '', 'tooltyp-theme' ),
		'items_list_navigation'      => __( '', 'tooltyp-theme' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
		'rewrite'                    => false,
	);
	register_taxonomy( 'event_type', array( 'event' ), $args );

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