1register_post_type( 'custom_post_type_name', array(
2 'capability_type' => 'post',
3 'capabilities' => array(
4 'create_posts' => false, // Removes support for the "Add New" function ( use 'do_not_allow' instead of false for multisite set ups )
5 ),
6 'map_meta_cap' => true, // Set to `false`, if users are not allowed to edit/delete existing posts
7));
8