abv2_tax
// Register Custom Taxonomy
function abv2_tax() {
$labels = array(
'name' => _x( 'Indikationen', 'Taxonomy General Name', 'text_domain' ),
'singular_name' => _x( 'Indikation', 'Taxonomy Singular Name', 'text_domain' ),
'menu_name' => __( 'Indikation', 'text_domain' ),
'all_items' => __( 'Alle Indikationen', 'text_domain' ),
'parent_item' => __( 'Parent Item', 'text_domain' ),
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
'new_item_name' => __( 'Neue Indikation', 'text_domain' ),
'add_new_item' => __( 'Neue Indikation hinzufügen', 'text_domain' ),
'edit_item' => __( 'Indikation editieren', 'text_domain' ),
'update_item' => __( 'Indikation aktualisieren', 'text_domain' ),
'view_item' => __( 'Indikation anschauen', 'text_domain' ),
'separate_items_with_commas' => __( 'Multiple Indikationen mit Komma trennen', 'text_domain' ),
'add_or_remove_items' => __( 'Indikation hinzufügen oder löschen', 'text_domain' ),
'choose_from_most_used' => __( 'Am meisten benutzt', 'text_domain' ),
'popular_items' => __( 'Benutzte Indikationen', 'text_domain' ),
'search_items' => __( 'Suche Indikationen', 'text_domain' ),
'not_found' => __( 'Keine Indikation gefunden', 'text_domain' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => false,
'show_tagcloud' => false,
'rewrite' => false,
);
register_taxonomy( 'indikation', array( 'cpt_essentials' ), $args );
}
add_action( 'init', 'abv2_tax', 0 );