Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('init', 'kits_custom_post_type');
- function kits_custom_post_type(){
- register_post_type('kits', array(
- 'labels' => array(
- 'name' => 'Комплекты', // Основное название типа записи
- 'singular_name' => 'Комплект', // отдельное название записи типа Book
- 'add_new' => 'Добавить новый',
- 'add_new_item' => 'Добавить новый комплект',
- 'edit_item' => 'Редактировать комплект',
- 'new_item' => 'Новый комплект',
- 'view_item' => 'Посмотреть комплект',
- 'search_items' => 'Найти комплект',
- 'not_found' => 'Комплектов не найдено',
- 'not_found_in_trash' => 'В корзине комплектов не найдено',
- 'parent_item_colon' => '',
- 'menu_name' => 'Комплекты'
- ),
- 'public' => true,
- 'publicly_queryable' => true,
- 'show_ui' => true,
- 'show_in_menu' => true,
- 'query_var' => true,
- 'rewrite' => true,
- 'capability_type' => 'post',
- 'has_archive' => true,
- 'hierarchical' => false,
- 'menu_position' => null,
- 'supports' => array('title','editor','author','thumbnail','excerpt','comments')
- ) );
- }
Add Comment
Please, Sign In to add comment