Advertisement
arru

Untitled

Nov 8th, 2011
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1.     // Postitüüp 2, Nippe. Hierarhiline, kasutab taseme, õppekava ja iseenda taksonoomiaid.
  2.     register_post_type( 'nippe',
  3.         array(
  4.             'labels' => array(
  5.                 'name' => __( 'Nippe' ),
  6.                 'singular_name' => __( 'Nipp' ),
  7.                 'add_new_item' => __('Lisa uus nipp'),
  8.                 'edit_item' => __('Muuda nippi'),
  9.                 'new_item' => __('Uus nipp'),
  10.                 'all_items' => __('Kõik nipid'),
  11.                 'view_item' => __('Vaata nippi'),
  12.                 'search_items' => __('Otsi nippe'),
  13.                 'not_found' =>  __('Ei leitud ühtegi nippi')
  14.             ),
  15.         'public' => true,
  16.         'has_archive' => true,
  17.         'show_in_menu' => true,
  18.         'menu_position'=> 5,
  19.         'capability_type' => 'post', //määrab õigused lugeda-lisada-muuta (vt veel capabilities ja map_meta_cap)
  20.         'hierarchical' => true,
  21.         'supports' => array('title', 'editor', 'author', 'thumbnail', 'excerpt', 'custom-fields', 'revisions', 'comments'),
  22.         'rewrite' => array( 'slug' => 'nippe'),
  23.         'can_export' => true,      
  24.         )
  25.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement