Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $labels = array('name' => 'FB accounts',
- 'singular_name' => 'FB account',
- 'menu_name' => 'FB accounts',
- 'parent_item_colon' => 'Родительский:',
- 'all_items' => 'Все FB accounts',
- 'view_item' => 'Просмотреть',
- 'add_new_item' => 'Добавить FB account',
- 'add_new' => 'Добавить FB account',
- 'edit_item' => 'Редактировать FB account',
- 'update_item' => 'Обновить FB account',
- 'search_items' => 'Найти FB account',
- 'not_found' => 'Не найдено',
- 'not_found_in_trash' => 'Не найдено в корзине' );
- $args = array('labels' => $labels,
- 'supports' => array('title', 'author'),
- 'public' => true,
- 'menu_position' => 5,
- 'show_ui' => true,
- 'show_in_menu' => true,
- 'show_in_nav_menus' => true,
- 'publicly_queryable' => true,
- 'exclude_from_search' => false,
- 'has_archive' => true,
- 'query_var' => true,
- 'can_export' => true,
- 'rewrite' => true,
- 'capabilities' => array(
- 'edit_post' => 'edit_fb_account',
- 'edit_posts' => 'edit_fb_accounts',
- 'edit_others_posts' => 'edit_other_fb_accounts',
- 'publish_posts' => 'publish_fb_accounts',
- 'read_post' => 'read_fb_account',
- 'read_private_posts' => 'read_private_fb_accounts',
- 'delete_post' => 'delete_fb_account'
- ),
- 'menu_icon' => 'dashicons-book');
- register_post_type('fb_account', $args);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement