Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Postitüüp 2, Nippe. Hierarhiline, kasutab taseme, õppekava ja iseenda taksonoomiaid.
- register_post_type( 'nippe',
- array(
- 'labels' => array(
- 'name' => __( 'Nippe' ),
- 'singular_name' => __( 'Nipp' ),
- 'add_new_item' => __('Lisa uus nipp'),
- 'edit_item' => __('Muuda nippi'),
- 'new_item' => __('Uus nipp'),
- 'all_items' => __('Kõik nipid'),
- 'view_item' => __('Vaata nippi'),
- 'search_items' => __('Otsi nippe'),
- 'not_found' => __('Ei leitud ühtegi nippi')
- ),
- 'public' => true,
- 'has_archive' => true,
- 'show_in_menu' => true,
- 'menu_position'=> 5,
- 'capability_type' => 'post', //määrab õigused lugeda-lisada-muuta (vt veel capabilities ja map_meta_cap)
- 'hierarchical' => true,
- 'supports' => array('title', 'editor', 'author', 'thumbnail', 'excerpt', 'custom-fields', 'revisions', 'comments'),
- 'rewrite' => array( 'slug' => 'nippe'),
- 'can_export' => true,
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement