Individual capabilities without role
-
I feel like this should be fairly simple, but I can’t figure out where to start. I want to create new capabilities such as “add_wiki_post” and “invite_others” that are linked to certain custom made plugins for my site. That way, I can use current_user_can(“add_wiki_post”) and all will be peachy. My issue is that I don’t want these capabilities to be assigned to a specific role. I want them to be free floating so I can assign them to users individual. Thus one contributor may have “add_wiki_post” but another may not.
Is this possible with capabilities, or would it be better to create my own set of usermeta and kinda make a second caps system?
Thanks! I’d love some creative solutions. And, I will release this code as a plugin. I’m adding capabilities to badges.
- The topic ‘Individual capabilities without role’ is closed to new replies.