Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Types

// Register Custom Taxonomy
function nuisible_type_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Types', 'Taxonomy General Name', 'lgh' ),
		'singular_name'              => _x( 'Type', 'Taxonomy Singular Name', 'lgh' ),
		'menu_name'                  => __( 'Types', 'lgh' ),
		'all_items'                  => __( 'Tous les types', 'lgh' ),
		'parent_item'                => __( 'Parent', 'lgh' ),
		'parent_item_colon'          => __( 'Parent', 'lgh' ),
		'new_item_name'              => __( 'Nouveau type', 'lgh' ),
		'add_new_item'               => __( 'Ajouter un type', 'lgh' ),
		'edit_item'                  => __( 'Editer un type', 'lgh' ),
		'update_item'                => __( 'Modifier un type', 'lgh' ),
		'view_item'                  => __( 'Voir un type', 'lgh' ),
		'separate_items_with_commas' => __( 'Séparer les types avec des virgules', 'lgh' ),
		'add_or_remove_items'        => __( 'Ajouter ou supprimer', 'lgh' ),
		'choose_from_most_used'      => __( '', 'lgh' ),
		'popular_items'              => __( 'Types populaires', 'lgh' ),
		'search_items'               => __( 'Rechercher un type', 'lgh' ),
		'not_found'                  => __( 'Not Found', 'lgh' ),
		'no_terms'                   => __( 'No items', 'lgh' ),
		'items_list'                 => __( 'Items list', 'lgh' ),
		'items_list_navigation'      => __( 'Items list navigation', 'lgh' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'Types', array( 'nuisibles' ), $args );

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