I'm developing an plugin that adds an new user role (client role, for instance). This role only extends the admin role for now.
add_role(
'client',
__('Client'),
get_role('administrator')->capabilities
);
Now i wan't to release an new version of the plugin that update the client capabilities and remove the install_plugins
capability.
Roles are persistent, so i can't just update my add_role
.
My question is: how can i manage an custom role, updating it's capabilities?