Assigning Custom Post Capabilities to a Custom Role and WordPress Default Roles
This is the first time I have messed around with custom roles and would appreciate any pointers!
I have created a custom post type, let’s call it “book”, and would like to create a new role with the following permissions:
- Read own book post
- Edit own book post
- Delete own book post
Seems easy enough, but I’d also like the default roles of Super Admin (I’m using multisites), Administrator, Editor, and Author all to be able to Read, Edit, and Delete any book post. Would I have to use the add_cap() function for each of these default roles to allow them to perform all book post capabilities?