How create a role with admin capability less 1 or 2?
It sounds like you want to add all the admin capabilities to a role except a few key capabilities that you have in mind. What you could do is get the administrator role and do a key diff on capabilities you do not want. We have to use array_diff_key() because capabilities are keyed by name: … Read more