[wp-hackers] After adding custom role, admin panel becomes inaccessible
Alex Hempton-Smith
hempsworth at gmail.com
Tue Jun 29 14:10:10 UTC 2010
Brilliant! Thanks Jake, that's fixed it.
So roles/caps are stored in the database? I thought they were just ran
dynamically; thus didn't think I needed to remove any previously added ones.
Cheers again,
-- Alex (Hempsworth)
On Tue, Jun 29, 2010 at 2:58 PM, Jake Goldman <
wphackers at jakemgold.myfastmail.com> wrote:
> 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
>>
> _______________________________________________
> 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