• Resolved Feyisayo1

    (@feyisayo1)


    Hey guys, I built a website for a client and he has been bugging me on changing the “Repeat Password” text on the WordPress register form to something else, I have searched the entire wp-login.php file for hours now looking for the string “Repeat Password” without any luck . I was only able to find the “Password” label but not “Repeat Password” , please help me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    By default WP assigns a random password to new registrants that is emailed to them. They can then login and change it to one of their liking in the profile page. If you are seeing two password fields on the registration form, a theme or plugin has manipulated the default behavior to bypass the random password assignment. You should determine what is changing the behavior by deactivating plugins and seeing when the form reverts to default.

    If changing the code proves to be difficult, you could also change the label with jQuery after the page loads, though users may see a brief flash of the original string. If the label is passed through a l10n function like is done on the profile page, ( using _e() ) then you could alter text by using the ‘gettext’ filter.

    Thread Starter Feyisayo1

    (@feyisayo1)

    Thanks BCworks, it has to be my theme, I’m unchecking the option in my theme to let users specify a password when registering now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where to edit in wp-login.php’ is closed to new replies.