Hi there!
Thanks for asking, it’s a very interesting topic. As the admin menus and the available functions depend on the capabilities, I would approach this using a set of capabilities assigned to a group.
Within Groups, you have a section that provides access to all capabilities that it “knows” about (see the Capabilities section of the documentation). This includes the standard WordPress capabilities that determine what users can do (the section provides a Refresh function if a capability you’re interested in is missing) and additional capabilities that plugins add. You can use the capabilities by assigning them to one or more groups and by adding relevant users to those groups.
To provide a limited set of functions on the admin side to some users, you could simply add a new group and assign the required capabilities to the group. Then add the corresponding users to that group.
You can refer to the Roles and Capabilities to look for the particular capabilities that you would need to add to a group, in order to open up functionality on the admin side to its users. Worth noting the difference between roles and capabilities, as you cannot assign roles to a group, but capabilities.
-
This reply was modified 2 years, 1 month ago by
Kento.