52
// Register Custom Taxonomy
function chair_taxonomy() {
$labels = array(
'name' => 'Кафедры',
'singular_name' => 'Кафедра',
'menu_name' => 'Кафедры',
'all_items' => 'Все кафедры',
'parent_item' => 'Родительская кафедра',
'parent_item_colon' => 'Родительская кафедра',
'new_item_name' => 'Новая кафедра',
'add_new_item' => 'Добавить кафедру',
'edit_item' => 'Редактировать',
'update_item' => 'Обновить',
'view_item' => 'Просмотр',
'separate_items_with_commas' => 'Названия кафедр через запятую',
'add_or_remove_items' => 'Добавить или редактировать кафедру',
'choose_from_most_used' => 'Выбрать из наиболее используемых',
'popular_items' => 'Популярные кафедры',
'search_items' => 'Найти кафедру',
'not_found' => 'Не найден',
'no_terms' => 'Нет кафедр',
'items_list' => 'Список кафедр',
'items_list_navigation' => 'Поиск по списку',
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
);
register_taxonomy( 'chair', array( 'teacher' ), $args );
}
add_action( 'init', 'chair_taxonomy', 0 );