Prevent user creating new users with specific roles
One step is to use the editable_roles filter to remove roles from the dropdown but this doesn’t prevent the user from modifying the select value and create a user with “not allowed” role. Yes it does. This filter is not just for the dropdown. Modifying editable_roles does in fact prevent users from assigning a role … Read more