ALP Tax Standorte
if ( ! function_exists( 'alp_tax_standort' ) ) {
// Register Custom Taxonomy
function alp_tax_standort() {
$labels = array(
'name' => 'Standorte',
'singular_name' => 'Standort',
'menu_name' => 'Standorte',
'all_items' => 'Alle Standorte',
'parent_item' => 'Alle Elternstandorte',
'parent_item_colon' => 'Parent Item:',
'new_item_name' => 'Neuer Standort',
'add_new_item' => 'Neuen Standort hinzufügen',
'edit_item' => 'Standort bearbeiten',
'update_item' => 'Standort aktualisieren',
'view_item' => 'Standort ansehen',
'separate_items_with_commas' => 'Mehrere mit Komma trennen',
'add_or_remove_items' => 'Standort hinzufügen oder entfernen',
'choose_from_most_used' => 'Aus den Beliebtesten wählen',
'popular_items' => 'Beliebte Standorte',
'search_items' => 'Standorte durchsuchen',
'not_found' => 'Nicht gefunden',
'no_terms' => 'Kein Standort',
'items_list' => 'Standortliste',
'items_list_navigation' => 'Items list navigation',
);
$capabilities = array(
'manage_terms' => 'publish_pages',
'edit_terms' => 'publish_pages',
'delete_terms' => 'publish_pages',
'assign_terms' => 'edit_posts',
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'capabilities' => $capabilities,
);
register_taxonomy( 'standort', array( 'teammitglieder' ), $args );
}
add_action( 'init', 'alp_tax_standort', 0 );
}