How to remove administrator role in settings -> general -> New User Default Role?
Okay, this looks tricky, but I think it’s possible. The user-new.php file calls wp_dropdown_roles() to output the list of roles. The wp_dropdown_roles() function calls get_editable_roles() to get the list of roles to output. The get_editable_roles() function has a filter, editable_roles. So, you should be able to add a filter for editable_roles, such that, if the … Read more