Where can I find documentation on what characters are allowed in user names and why?

Posted by Prem Tiwari | Updated on

I don’t think there’s any official documentation about that, but you can have a look at the sanitize_user function in wp-includes/formatting.php:

You could hook into that function and override the default behavior with your own.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers