Custom post type capabilities

$custom_posts_caps = array('edit_custom_post',
'read_custom_post',
'delete_custom_post',
'edit_custom_posts',
'edit_others_custom_posts',
'publish_custom_posts',
'read_private_custom_posts');

_smg_add_cap('administrator', $custom_posts_caps);
_smg_add_cap('editor', $custom_posts_caps);

'capabilities' => array(
'edit_post' => 'edit_custom_post',
'read_post' => 'read_custom_post',
'delete_post' => 'delete_custom_post',
'edit_posts' => 'edit_custom_posts',
'edit_others_posts' => 'edit_others_custom_posts',
'publish_posts' => 'publish_custom_posts',
'read_private_posts' => 'read_private_custom_posts'
),

Leave a Reply