Better use of roles/capabilities | Peter's Collaboration E-mails | Forum
4:30 am
Hi Peter,
I have a site where I've removed the "Editor" role and replaced it with a "Moderator" role, which has similar capabilities. However, none of my "Moderators" appear in the dropdown list.
The changelog has says this for version 1.6.0:
Version 1.6.0 [June 19, 2011: Added ability to specify contributor and moderator roles for sites with custom roles and capabilities.]
I can't see anywhere in the options to do this. Is it implemented as a filter in the code or something? Can you provide details please?
Thanks
Ross
Hi,
Near the top of the plugin file itself, you'll see these arrays, which you can add to and modify for other roles:
// Which roles on your site can only "submit for review"
// Typically you do not have to edit this unless you have custom roles and capabilities
$pce_contributor_roles = array();
$pce_contributor_roles[] = 'contributor';
// Which roles on your site can approve posts
// Typically you do not have to edit this unless you have custom roles and capabilities
$pce_moderator_roles = array();
$pce_moderator_roles[] = 'administrator';
$pce_moderator_roles[] = 'editor';