Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

GLA | cpt_stores_ct_sectors

// Register Custom Taxonomy
function cpt_stores_ct_sectors() {

	$labels = array(
		'name'                       => _x( 'Branchen', 'Taxonomy General Name', 'glatt' ),
		'singular_name'              => _x( 'Branche', 'Taxonomy Singular Name', 'glatt' ),
		'menu_name'                  => __( 'Branchen', 'glatt' ),
		'all_items'                  => __( 'Alle Branchen', 'glatt' ),
		'parent_item'                => __( 'Eltern Branche', 'glatt' ),
		'parent_item_colon'          => __( 'Eltern Branche:', 'glatt' ),
		'new_item_name'              => __( 'Neue Branche', 'glatt' ),
		'add_new_item'               => __( 'Neue Branche hinzufügen', 'glatt' ),
		'edit_item'                  => __( 'Branche ändern', 'glatt' ),
		'update_item'                => __( 'Branche ändern', 'glatt' ),
		'view_item'                  => __( 'Branche ansehen', 'glatt' ),
		'separate_items_with_commas' => __( 'Trenne Branchen mit Kommas', 'glatt' ),
		'add_or_remove_items'        => __( 'Füge Branchen hinzu oder entferne sie', 'glatt' ),
		'choose_from_most_used'      => __( 'Wähle aus den meist gewählten', 'glatt' ),
		'popular_items'              => __( 'Populäre Branchen', 'glatt' ),
		'search_items'               => __( 'Branche suchen', 'glatt' ),
		'not_found'                  => __( 'Keine Branche gefunden.', 'glatt' ),
		'no_terms'                   => __( 'Keine Branche', 'glatt' ),
		'items_list'                 => __( 'Branchen Liste', 'glatt' ),
		'items_list_navigation'      => __( 'Branchen Navigation', 'glatt' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => false,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
		'rewrite'                    => false,
		'show_in_rest'               => false,
	);
	register_taxonomy( 'cpt_stores_ct_sectors', array( 'cpt_stores' ), $args );

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