WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When a New User to register on my site ...

I would like that in your login, the first letter always be capitalized. ( uppercase letter )


Does anyone have any idea how to do this?

share|improve this question
up vote 0 down vote accepted

You can possibly add a filter to sanitize_user and return ucfirst($username);, I haven't tried it though to verify if it will work.

share|improve this answer
i will try and tell you what happen. thanks – Alyson Veras Aug 24 '11 at 23:18
do you have any ideia about a code to do this? i'm not a programmer – Alyson Veras Aug 25 '11 at 16:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.