Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

druckbar – CT – druckkategorien

if ( ! function_exists( 'CT_druckbar_druckarten_kategorien' ) ) {

// Register Custom Taxonomy
function CT_druckbar_druckarten_kategorien() {

	$labels = array(
		'name'                       => _x( 'Druckkategorien', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Druckkategorie', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Druckkategorien', 'text_domain' ),
		'all_items'                  => __( 'Alle Druckkategorien', 'text_domain' ),
		'parent_item'                => __( 'Übergeordnete Druckkategorie', 'text_domain' ),
		'parent_item_colon'          => __( 'Übergeordnete Druckkategorie:', 'text_domain' ),
		'new_item_name'              => __( 'Neuer Druckkategoriename', 'text_domain' ),
		'add_new_item'               => __( 'Neue Druckkategorie hinzufügen', 'text_domain' ),
		'edit_item'                  => __( 'Druckkategorie bearbeiten', 'text_domain' ),
		'update_item'                => __( 'Druckkategorie aktualisieren', 'text_domain' ),
		'view_item'                  => __( 'Druckkategorie ansehen', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separate Items with commas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Druckkategorien hinzufügen oder löschen', 'text_domain' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'text_domain' ),
		'popular_items'              => __( 'Popular Items', 'text_domain' ),
		'search_items'               => __( 'Druckkategorien durchsuchen', 'text_domain' ),
		'not_found'                  => __( 'Nicht gefunden', 'text_domain' ),
		'no_terms'                   => __( 'Keine Druckkategorien', 'text_domain' ),
		'items_list'                 => __( 'Liste der Druckkategorien', 'text_domain' ),
		'items_list_navigation'      => __( 'Druckkategorienliste Navigation', 'text_domain' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
	);
	register_taxonomy( 'druckkategorie', array( 'druckarten' ), $args );

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

}