Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Wordpress User Type

Tags:

wordpress

I want to create custom user type in wordpress. For eaxpmle there are 'Editor','Author', etc.. I want to create my own type; like say 'Developer' with particular set of access level. Is that possible? I am a newbie, so a little direction or suggestions will really be help.

Thanks

like image 224
Roger Avatar asked Aug 22 '12 11:08

Roger


1 Answers

To use this, add the code below to your functions.php file:

add_role('developer', 'Developer', array(
    'read' => true,
    'edit_posts' => true,
    'delete_posts' => true,
));
like image 75
Flame Trap Avatar answered Jan 28 '23 04:01

Flame Trap