user role | Wordpress | Add role | Remove Role | users role in wordpress

How to add/remove user role in wordpress

users role in wordpress add/remove

For role add use below function

$aRole = "Your role name";
$aDisplayName = "Role display name";
$aCapabilities = array();
add_role( $aRole, $aDisplayName, $aCapabilities );

For role remove user below function

$aRole = "Your role name";
remove_role( $aRole );