Hi folks,
I’m writing a plugin that integrates my non-WordPress site’s existing non-post content from tables. The eventual long-term plan is to gradually migrate this into something I can open source.
However, right now my issue is that my site’s contributing users currently divide into three groups:
* People who write and maintain posts and pages
* People who write and maintain the custom content
* People who do both
Obviously the first group fits in fine as editors and subscribers, etc but for the second group I don’t want to give them permission to access the posts and pages modules in the admin (or anything else).
Is it possible to lock down the dashboard like this so that the second group can get to the admin and see the custom content admin section, without also giving them the ability to write posts and pages?
If it’s not , how hard would it be to edit WP to implement this (e.g. by adding new WP capabilities that are checked in Core?
Otherwise my only alternative seems to be to write an entirely separate admin section in ‘non-admin’ space, which is not a good experience for the third group.
[ad_2]
You can create your own WP role for people that do a specific job and give them the permissions you want.
Check out this plugin it does exactly what you’re looking for. Or write it yourself 😉 it’s just role capabilities.