[wp-hackers] Role Manager

Leo Baiano ljunior2005 at gmail.com
Fri Apr 29 20:07:20 UTC 2011


Thanks guys, to solve the problem I copied the permissions of the role
native 'editor', because I know that this was the permissions that I wanted,
 went after eliminating what he wanted to withdraw my new group and submitted
with the following parameters:

add_role('editorImprensa', 'Editor Imprensa', array(
'delete_others_pages' => true,
'delete_others_posts' => true,
'delete_pages' => true,
'delete_posts' => true,
'delete_private_pages' => true,
'delete_private_posts' => true,
'delete_published_pages' => true,
'delete_published_posts' => true,
'edit_others_pages' => true,
'edit_others_posts' => true,
'edit_pages' => true,
'edit_posts' => true,
'edit_private_pages' => true,
'edit_private_posts' => true,
'edit_published_pages' => true,
'edit_published_posts' => true,
'publish_pages' => true,
'publish_posts' => true,
'read' => true,
'read_private_pages' => true,
'read_private_posts' => true,
'upload_files' => true
));

2011/4/29 Leo Baiano <ljunior2005 at gmail.com>

> I need a certain group of users can publish posts pending but can not find
>  thecorresponding role, so I'm creating the role:
>
> add_role('editorImprensa', 'Editor Imprensa', array(
>    'read' => true,
>    'read_posts' => true,
>    'read_private_posts' => true,
>    'publish_posts' => true,
>    'publish_private_posts' => true,
>    'edit_posts' => true,
>    'edit_private_posts' => true,
>    'delete_posts' => true,
>    'edit_published_posts' => true,
>    'edit_files' => true,
>    'upload_files' => true
> ));
>
> --
> Amplexos,
>
> Leo Baiano
> http://www.leobaiano.com
> http://www.blog.ljunior.com
> http://www.mcelebridades.com
> http://www.twitter.com/leobaiano
>



-- 
Amplexos,

Leo Baiano
http://www.leobaiano.com
http://www.blog.ljunior.com
http://www.mcelebridades.com
http://www.twitter.com/leobaiano


More information about the wp-hackers mailing list