The login form actions are located in wp-login.php
here and here.
// "login_form_{$action}"
login_form_lostpassword
login_form_postpass
login_form_logout
lostpassword_form
resetpass_form
register_form
There’s also the general login_init
which will fire for all actions.
To enqueue scripts on login, use login_enqueue_scripts
. Right after that, login_head
will allow you to add custom meta tags, etc. to the <head>
.
The end of the page is injectable with login_footer
.
- If you need to adjust (or add) errors, use
lostpassword_post
, which comes with an argument\WP_Error $errors
. - If it’s about passwords, you can use
validate_password_reset
which
has two arguments, first again the\WP_Error $errors
and the
current\WP_User $user
as second (or another\WP_Error
in case
the user is errornous).
Related Posts:
- Where is the email content for retrieve_password_message stored?
- Disable Or Redirect WP-login.php
- wordpress redirect after password reset
- How can I modify the default reset (lost) password email text?
- login_enqueue_scripts does not ovewrite the default styles
- Modify wp-login.php labels: Username to Email
- How to change “Registration complete. Please check your e-mail.” in wp-login.php
- How to customise wp-login.php only for users who are setting a password for the first time?
- How to use wp-login.php page only for logout?
- Remove lost password form and URL
- change register url on wp-login page
- Enqueue style for Password Reset 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?
- reset password link redirect to login page
- Custom login form for front-end user as well as admin
- Password reset – Disabled for LDAP accounts
- wp_login_form() redirect not redirecting users < admin
- Use Password Protected Form without the use of wp-login.php
- 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?
- Deep customization of wp-login.php
- if username or password is incorrect wp-login returns a blank page
- Call header and footer on login page
- Prevent redirect on custom wordpress login form
- Is there anyway to get the inputted password string from the login form?
- How do I create a function that modifies a message in the wp-login.php file?
- 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 login without password just email address (NO 2 factor authentication with email)
- WordPress “remember me” – How should it work?
- Changing the title of “
- Requiring wp-login.php sends headers automatically
- 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.
- Temporally disable password to login with empty password?
- Login page wordpress tagline remove [duplicate]
- Adding line break in esc_html__
- After limiting the access to my wp-login.php by IP through .htaccess, all my password-protected posts stopped working. What’s the best solution now?
- Copying My account/Login/Register button outside header
- When I enter password, I’m redirected to the WordPress login form
- Issue with cookies in wp-login
- Login form does not store/remember/suggest users password
- wp_set_password() does not work!
- 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 password set/reset link in same URL format as default does’t work
- 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
- Can I use core passworded page/post functions outside of wp-login.php?
- 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
- How to Disable Pre-population of Password on Password Reset
- Password change when the user login first time
- Custom login form redirect to external site
- Remove built in wordpress login and use only google auth
- How to shorten length of auto generated password sent during registration?
- Set content type to HTML for lost password email only
- How to create a word press user with hashedpassword
- Make post password required to publish
- FORCE_SSL_ADMIN not working
- Add class to input form in login form
- How do I properly update the WordPress database password?
- how to restrict user login whenever if a user puts on hold by editing wp-login action?
- Password Protected page not asking for a password
- Custom Log In Screen – Disable password recovery [duplicate]
- Alert Message through email or phone(Message)
- Changing old email to new email, lost the password
- Allow all reset password links within the past 24 hours to be valid and accepted
- Meta data being pulled from wp-login.php
- Custom get_the_password_form
- Members-only page, but accessible via sharable link
- On local machine can’t log in or reset password but I can log in on the live version, user has activation key in database
- How to make future posts visible to selected visitors without login
- Cannot login with correct username and password anymore
- Want to display page content after password prompt without page reload