casarosa designers tax
// Register Custom Taxonomy
function designers_taxonomy() {
$labels = array(
'name' => _x( 'Дизайнеры', 'Taxonomy General Name', 'casarosa' ),
'singular_name' => _x( 'Дизайнер', 'Taxonomy Singular Name', 'casarosa' ),
'menu_name' => __( 'Дизайнеры', 'casarosa' ),
'all_items' => __( 'Все дизайнеры', 'casarosa' ),
'parent_item' => __( 'Родитель', 'casarosa' ),
'parent_item_colon' => __( 'Parent Item:', 'casarosa' ),
'new_item_name' => __( 'Создать', 'casarosa' ),
'add_new_item' => __( 'Добавить нового', 'casarosa' ),
'edit_item' => __( 'Изменить', 'casarosa' ),
'update_item' => __( 'Обновить', 'casarosa' ),
'view_item' => __( 'Посмотреть', 'casarosa' ),
'separate_items_with_commas' => __( 'Разделите запятой', 'casarosa' ),
'add_or_remove_items' => __( 'Добавить или удалить', 'casarosa' ),
'choose_from_most_used' => __( 'Выберите из часто используемых', 'casarosa' ),
'popular_items' => __( 'Популярные', 'casarosa' ),
'search_items' => __( 'Найти', 'casarosa' ),
'not_found' => __( 'Не найдено', 'casarosa' ),
);
$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( 'designers', array( 'project' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'designers_taxonomy', 0 );