Arrow

Better use of roles/capabilities | Peter's Collaboration E-mails | Forum

Back to the blog

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Better use of roles/capabilities
June 14, 2012
4:30 am
Ross W
Guest

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

June 14, 2012
9:56 am
Peter
Admin
Forum Posts: 841
Offline

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';