[ad_1]
[ad_2]
Hello, community!
I’m currently working on a plugin where I want to implement a permission system for viewing and editing items based on different states: "All", "By Role", and "Private".
You can see the concept on image. Here’s a brief overview of what I’m envisioning:
- All: Users can view and edit all items.
- By Role: Users can view and edit items based on their assigned role. For example, an editor can see items created by other editors, while a contributor can only see their own items.
- Private: Users can only view and edit their own items, ensuring complete privacy.
I’d love to hear your thoughts, experiences, and any suggestions you might have regarding this approach. Thank you in advance for your help!
What do you mean by items? WordPress already has user roles, and you can create custom user roles.
How is this different from the free [Members plugin](https://wordpress.org/plugins/members/) or the [User Role Editor](https://wordpress.org/plugins/user-role-editor/) plugin? Both of those extend the default WordPress user capabilities.
There are also membership / content restriction plugins like [MemberPress](https://memberpress.com/), [Restrict Content Pro](https://restrictcontentpro.com/), etc that takes things further.