Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4540
    dweb360
    Participant

    Hello
    How to let a user with a custom role to be able to only read a custom post type, cant’ modify or delete it.

    Thank you

    #4541
    Vladimir
    Keymaster

    Hi,

    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”.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.