Change WordPress user roles and capabilities › Forums › How to or FAQ › Read only custom post type › Reply To: Read only custom post type
05/01/2018 at 00:28 #4541
In general if you will not grant to a role any user capability which allow to edit/delete custom post type, such user can view this custom post type records at the front-end.
If you wish that user sees CPT records list at the back-end, you can turn ON “Activate “Create” capability for posts/pages/custom post types” option at “Settings->User Role Editor->Additional Modules” tab and grant to this role ‘edit_cpt’ (like edit_posts or edit_books) capability only. Then user will see CPT list, with the single action link under each record – “View”.