We are using wordpress in multi sub-domains at work.
So we have administrator for each domain who can create users for subscribing editing contributing.
The problem is, our company edit the rule that all logins/usernames have to be like this “first-name.family-name” ex “barack.obama”… 🙂
But the administrator can not do it, only super admin can do it !
In sub-domain administrator mode, there is a message that says : “Only the lowercase letters a-z and numbers allowed”.
So we want to make it possible to admin to create users with first-name.family-name, but we try to search how to change it in the code, without finding it.
If someone can help, thanks !
In multisite usernames are validated with wpmu_validate_user_signup, which you can find in /wp-includes/ms-functions.php#L462.
You can add a dot there, after the 0-9, which is not recommended, since you will then hate to update WordPress core.
So, a better solution would be to create a plugin for it.
You could try to add the following in a php-file and add it to /wp-content/mu-plugins/
I didn’t try it though. This is based on “Changing the username character limit from four to less characters“.
I hope this helps. At least it should get you close. GL with it!