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
- WordPress does not allow me to login until another dashboard is open
- Customize WordPress Password-Reset Behavior
- Sending the reset password link programatically
- How to change user password with wp-cli?
- How can I redirect user after entering wrong password?
- Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
- Disable user registration password email
- Where to securely store API keys and passwords in WordPress?
- Check for correct username on custom login form
- The website cannot display the page
- Add error message on password protected page
- Missing URL in password reset email
- Loosen/disable password policy
- Password Protect Custom Page
- How do I require authorization / login to view a specific set of posts / pages?
- Custom login form
- Why are passwords exportable as plain text in WordPress?
- Password Reset for Users on a Multisite Subsite
- How to protect pages with double authentication: password + email (in custom field)
- Enforcing password complexity
- Password protecting a page
- How do I create a password reset link?
- Replacing the WordPress password validation