0

What happens if i assign let's say 2 different (custom) roles to a user that both of which have the same (custom) capability?

4
  • user will have all the capabilities. Why would you want to do this in the first place you should just make one custom role with all the capabilities needed to avoid confusion. Feb 14, 2014 at 16:27
  • 1
    @JacobRambo : it seems quite reasonable to me to have Roles share capabilities.
    – s_ha_dum
    Feb 14, 2014 at 16:52
  • That seems reasonable to me too. But the OP is asking about assigning a user multiple roles. What would be the need for a user to have more than one role? I didn't even think that it was possible by default to do that in wordpress. Feb 14, 2014 at 17:06
  • If you understand "Roles" as "groupings of capabilities" which is the only way they make sense to me, then it is not hard to imagine wanting to put someone in two different groups.
    – s_ha_dum
    Feb 14, 2014 at 18:45

1 Answer 1

2

I am pretty sure that nothing would happen other than the user would have the capability in question.

Think about it. The default Roles share many capabilities-- Authors, Editors, and Administrators all have edit_posts, for example. All roles (usually) have read

The same system manages both default and custom roles/capabilities, so there really should be no problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.