Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

Found an answer on stackoverflow shortly after posting this:

http://stackoverflow.com/questions/12825865/change-wordpresss-login-label-username

Uses the gettext filter instead of any wp functions

share|improve this answer

Your Answer

 
discard

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.