[wp-hackers] After adding custom role, admin panel becomes inaccessible

Jake Goldman wphackers at jakemgold.myfastmail.com
Tue Jun 29 13:58:09 UTC 2010


  Betting you didn't remove the role first. The add_role will fail if 
the role already exists.

remove_role('treasurer);

add_role( 'treasurer', 'Treasurer', array('read' =>   true,
'manage_finances' =>   true) );



On 6/29/2010 2:44 AM, Alex Hempton-Smith wrote:
> Just tried your suggestion, and no luck unfortunately...
>
> -- Alex  (Hempsworth)
>
>
> On Tue, Jun 29, 2010 at 3:01 AM, Jake Goldman<
> wphackers at jakemgold.myfastmail.com>  wrote:
>
>> Your capabilities array is set up wrong.
>>
>> add_role( 'treasurer', 'Treasurer', array('read' =>   true,
>> 'manage_finances' =>   true) );
>>
>>   <http://lists.automattic.com/mailman/listinfo/wp-hackers>
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list