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

Simple straightforward, question: How can you edit the labels of the wp-login.php form? I am using emails for logins, so I need to change 'username' to 'email'

The answer here seems to be out of date, or just doesn't work with ssl or something: Function to change a label (Username) in a core WordPress File (wp-includes/general-template.php)

I tried this in my functions file, but it didn't work:

function wpse60605_change_username_label( $defaults ){
   $defaults['label_username'] = __( 'Email' );
   return $defaults;
add_filter( 'login_form_defaults', 'wpse60605_change_username_label' );
share|improve this question

Found an answer on stackoverflow shortly after posting this:


Uses the gettext filter instead of any wp functions

share|improve this answer

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.