Found this here: https://wordpress.org/support/topic/how-to-change-the-text-labels-in-userpass-box-on-login-page/
The other answer here didn’t work for me, but this one did.
Just in case this helps anyone.
add_filter( 'gettext', 'register_text' );
add_filter( 'ngettext', 'register_text' );
function register_text( $translated ) {
$translated = str_ireplace(
'Username or Email Address',
'Your Custom Text',
$translated
);
return $translated;
}
Related Posts:
- Disable Or Redirect WP-login.php
- login_enqueue_scripts does not ovewrite the default styles
- How to change “Registration complete. Please check your e-mail.” in wp-login.php
- How to use wp-login.php page only for logout?
- change register url on wp-login page
- Can’t access wp-admin
- How do you add a custom link to the wordpress login page?
- wp-login.php register/lost password links to buttons?
- How to trigger a login form notice message?
- A child theme version of wp-login
- reset password label text change
- Add text on wordpress admin login page
- Is it possible to remove the version number from the wp-login.php page?
- wp_login_form() redirect not redirecting users < admin
- Login redirect on wp theme
- Can’t log in. Log in button missing [closed]
- Require WP login for outside access
- Modify WP-Login Page With Javascript?
- if username or password is incorrect wp-login returns a blank page
- Where is the email content for retrieve_password_message stored?
- What is the CODEX intercept for wp-login.php?action=lostpassword
- Call header and footer on login page
- Prevent redirect on custom wordpress login form
- Replace standard Login and Register form for Woocommerce [closed]
- How to destroy sessions after a user logout [closed]
- How to add required attribute to wp_login_form fields?
- WordPress “remember me” – How should it work?
- Changing the title of “
- Log In & Log Out Code In Header
- How to fix Sign In option in WordPress
- How can I redirect on a url after successful registration?
- I lock the site’s contents, click on a post, redirect to login, enter uname+password but fail to redirect to article
- How to access the actual input html of the login form
- Creating a custom login on site.
- Login page wordpress tagline remove [duplicate]
- Adding line break in esc_html__
- Copying My account/Login/Register button outside header
- Issue with cookies in wp-login
- Add content in wp login page
- Is it possible to check if password is correct in wp_authenticate_user?
- Modify login page after clicking “login” button, and before it arrives at redirect
- How to enable “remember me” checkbox in login forms by default?
- custom login query for custom login form?
- WordPress reCAPTCHA Problem
- Customizing WordPress Login URL
- It is possible that to get data in wp_login.php to your own php file in wordpress?
- Using gettext on wp-login.php won’t change “Back to site name” text
- Add video to wordpress login page
- WordPress login form with fancybox
- I wanna create a custom login form template
- Add custom field in wp_login_form()
- Retrieve password only by login. Users with same email
- wp-login.php not returning error messages / or gives 404
- Registration page background color covering 1 screen not covering full page
- Custom error messages for login and lost password forms
- wordpress redirect after password reset
- Prevent wp_login_form() from redirecting to wp-admin when there are errors
- Change Login URL Without Plugin
- How build a custom login/register form with error handling?
- Can not login with correct username and password
- How can I add a custom script to footer of login page?
- Multi-steps WordPress registration : in 4 steps how to?
- Change Login Page for a Multisite Subsite
- Redirect user after login/registration globally
- how to use reCaptcha v3 in wordpress custom login form?
- Making WordPress’ page and menus visible only for logged in users, checking session variables
- How to auto login after registration? [duplicate]
- Why can’t /wp-login.php be load balanced?
- Allow access to a page for admins only
- Why is my javascript not invoked in my hooks except wp_head?
- The comment login form is visible to me but not to the user
- Making the wordpress login form a jQuery dropdown
- deny IPs from wp-login using .htaccess
- Woocommerce login not working on the first try
- How can I prevent my custom form from redirecting to wp-login?
- Custom Login iframe doesn’t work
- wp-admin – 404 after custom login form
- Redirect already logged in users away from a page to a specific page base on user role
- Custom login doesn’t work properly
- Deep customization of wp-login.php
- WordPress server change – slow admin login time for first time
- Blank page for wp-admin after i uploaded the website from my localhost to the live server
- Filters on Login Page
- How to hook a logout funtion for specific usr role in wordpress?
- How do I validate extra pin field on my WordPress login form page?
- WordPress SSL not working [closed]
- Send admin to a different login than users?
- Problem in auto login after registration
- Redirect per shortcode if user is logged in
- Special link for no automatic login (no username and no password)
- How to change form action of wp-login page with a function
- Custom transactional emails on user signup with wp_add_user
- Redirect user to login and then to page where they came from
- disable WP_error: authentication_failed
- Redirect default login page to a custom page [duplicate]
- WordPress login process is hanging
- Can’t login through wp-login.php on fresh installation
- gravity form login widget redirect
- WordPress – Security Question at Login from User’s Meta Data
- How to hide header and footer from page template