Custom Role does not have access to dashboard

I was just adding a custom role by using the add_role() function. Here is the code below:

add_role('user', 'User', array('read'));

I figured this would give the same level of access as the subscribers role. Technically I want them to be the same but I don’t want to use the subscribers as a role for certain users because there will be different access between the two.

Read More

However, although, from what I read on the wordpress codex site, the subscribers has only one capability and that is to ‘read’ it has access to the dashboard and can edit their own profile. My custom role cannot. I get the following message when going to the admin panel.

You do not have sufficient permissions to access this page.

Why is that? Hoe do get the right permissions to do this?

Thanks,
Joe

Related posts

1 comment

Comments are closed.