add_role() -> custom capabilities and current_user_can() not compatible.
-
I’m trying to give an Administrator custom capabilities and current_user_can() will work with ROLE, but not with CAPABILITY.
Is there a workaround other than creating another admin role and assigning all of the current admin capabilities and the custom ones?
- The topic ‘add_role() -> custom capabilities and current_user_can() not compatible.’ is closed to new replies.