Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Weihs Produkt Arten

// Register Custom Taxonomy
function init_product_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Produkt Arten', 'Taxonomy General Name', 'weihs-plugin-deutsch' ),
		'singular_name'              => _x( 'Produkt Art', 'Taxonomy Singular Name', 'weihs-plugin-deutsch' ),
		'menu_name'                  => __( 'Produkt Art', 'weihs-plugin-deutsch' ),
		'all_items'                  => __( 'Alle Produkt Arten', 'weihs-plugin-deutsch' ),
		'parent_item'                => __( 'Produkt Art', 'weihs-plugin-deutsch' ),
		'parent_item_colon'          => __( 'Produkt Art', 'weihs-plugin-deutsch' ),
		'new_item_name'              => __( 'Neue Produkt Art', 'weihs-plugin-deutsch' ),
		'add_new_item'               => __( 'Neue Produkt Art hinzufügen', 'weihs-plugin-deutsch' ),
		'edit_item'                  => __( 'Produkt Art bearbeiten', 'weihs-plugin-deutsch' ),
		'update_item'                => __( 'Produkt Art aktualisieren', 'weihs-plugin-deutsch' ),
		'view_item'                  => __( 'Produkt Art anzeigen', 'weihs-plugin-deutsch' ),
		'separate_items_with_commas' => __( 'Produkt Arten mit Komma trennen', 'weihs-plugin-deutsch' ),
		'add_or_remove_items'        => __( 'Produkt Arten hinzufügen oder entfernen', 'weihs-plugin-deutsch' ),
		'choose_from_most_used'      => __( 'Aus meist genutzten Produkt Arten wählen', 'weihs-plugin-deutsch' ),
		'popular_items'              => __( 'Oft genutzte Produkt Arten', 'weihs-plugin-deutsch' ),
		'search_items'               => __( 'Suche Produkt Arten', 'weihs-plugin-deutsch' ),
		'not_found'                  => __( 'Produkt Art nicht gefunden', 'weihs-plugin-deutsch' ),
		'no_terms'                   => __( 'Keine Produkt Art vorhanden', 'weihs-plugin-deutsch' ),
		'items_list'                 => __( 'Produkt Arten Übersicht', 'weihs-plugin-deutsch' ),
		'items_list_navigation'      => __( 'Produkt Arten Übersicht Navigation', 'weihs-plugin-deutsch' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
	);
	register_taxonomy( 'weihs_product', array( 'sortiment_posttype' ), $args );

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