On creation of a custom post type I’m trying to define capabilities but it’s not working. What’s wrong with this code?
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'query_var' => true,
'rewrite' => true,
'hierarchical' => false,
'menu_position' => null,
'supports' => array('title'),
'capabilities' => array(
'edit_post' => 'edit_video',
'edit_posts' => 'edit_videos',
'edit_others_posts' => 'edit_others_videos',
'publish_posts' => 'publish_videos',
'read_post' => 'read_videos',
'read_private_posts' => 'read_private_videos',
'delete_post' => 'delete_videos'
)
);