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?

dstach 3 months 2021-07-09T22:36:14-05:00 0 Answers 0 views 0

Leave an answer