Create a Role

$nl_roles = new NLRoles();

class NLRoles{

public function __construct(){
add_action('init',array(&$this,'init'));
}

public function init(){
add_role('nl_document_user',__('Document User'),
array(
'read' => true, // true allows this capability
//'edit_posts' => true,
//'delete_posts' => false, // Use false to explicitly deny
)
);

}
}

0 Comments

You must be logged in to post a comment.