Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Tax Type Kampus

if ( ! function_exists( 'kampus_taxonomy' ) ) {

// Register Custom Taxonomy
function kampus_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Types', 'Taxonomy General Name', 'kampus_tax_text_domain' ),
		'singular_name'              => _x( 'Type', 'Taxonomy Singular Name', 'kampus_tax_text_domain' ),
		'menu_name'                  => __( 'Type', 'kampus_tax_text_domain' ),
		'all_items'                  => __( 'Tous les types', 'kampus_tax_text_domain' ),
		'parent_item'                => __( 'Type parent', 'kampus_tax_text_domain' ),
		'parent_item_colon'          => __( 'Parent du type', 'kampus_tax_text_domain' ),
		'new_item_name'              => __( 'Nouveau Nom de type', 'kampus_tax_text_domain' ),
		'add_new_item'               => __( 'Ajouter un nouveau type', 'kampus_tax_text_domain' ),
		'edit_item'                  => __( 'Editer un type', 'kampus_tax_text_domain' ),
		'update_item'                => __( 'MàJ un type', 'kampus_tax_text_domain' ),
		'view_item'                  => __( 'Voir un type', 'kampus_tax_text_domain' ),
		'separate_items_with_commas' => __( 'Séparer les Types avec une virgule', 'kampus_tax_text_domain' ),
		'add_or_remove_items'        => __( 'Ajouter ou supprimer un Type', 'kampus_tax_text_domain' ),
		'choose_from_most_used'      => __( 'Choisir parmis les plus utilisées', 'kampus_tax_text_domain' ),
		'popular_items'              => __( 'Types populaires', 'kampus_tax_text_domain' ),
		'search_items'               => __( 'Chercher un Type', 'kampus_tax_text_domain' ),
		'not_found'                  => __( 'Pas trouvé', 'kampus_tax_text_domain' ),
		'no_terms'                   => __( 'Pas de Type', 'kampus_tax_text_domain' ),
		'items_list'                 => __( 'Liste de Type', 'kampus_tax_text_domain' ),
		'items_list_navigation'      => __( 'Types liste de navigation', 'kampus_tax_text_domain' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'kampus_type', array( 'kwiper_kampus' ), $args );

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

}