Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Sommer тип проекта

// Register Custom Taxonomy
function sommer_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Типы проектов', 'Taxonomy General Name', 'sommer' ),
		'singular_name'              => _x( 'Тип проекта', 'Taxonomy Singular Name', 'sommer' ),
		'menu_name'                  => __( 'Тип проекта', 'sommer' ),
		'all_items'                  => __( 'Все типы', 'sommer' ),
		'parent_item'                => __( 'Родитель', 'sommer' ),
		'parent_item_colon'          => __( 'Родитель:', 'sommer' ),
		'new_item_name'              => __( 'Новый тип', 'sommer' ),
		'add_new_item'               => __( 'Добавить новый тип', 'sommer' ),
		'edit_item'                  => __( 'Изменить', 'sommer' ),
		'update_item'                => __( 'Обновить', 'sommer' ),
		'view_item'                  => __( 'Посмотреть', 'sommer' ),
		'separate_items_with_commas' => __( 'Разделите типы запятыми', 'sommer' ),
		'add_or_remove_items'        => __( 'Добавить/Удалить типы', 'sommer' ),
		'choose_from_most_used'      => __( 'Выбрать из часто используемых', 'sommer' ),
		'popular_items'              => __( 'Популярные типы', 'sommer' ),
		'search_items'               => __( 'Найти типы', 'sommer' ),
		'not_found'                  => __( 'Не найдено', 'sommer' ),
		'no_terms'                   => __( 'Нет типов', 'sommer' ),
		'items_list'                 => __( 'Список типов', 'sommer' ),
		'items_list_navigation'      => __( 'Навигация по типам', 'sommer' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'type', array( 'project' ), $args );

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