You may want to use the validate_password_reset hook instead.
Try
add_action( 'validate_password_reset' , 'se_password_min_length_check' 10, 2 );
function se_password_min_length_check( $errors, $user){
if(strlen($_POST['pass1']) < 8)
$errors->add( 'password_too_short', 'ERROR: password is too short.' );
}
Related Posts:
- wordpress redirect after password reset
- Force all users in MU to change their passwords
- Reseting admin password through PHPMyadmin fails
- Check Password Reset Key Not Woking
- Password reset message – change the network_home_url( ‘/’ )
- Lost password link is redirecting to /shop/my-account/lost-password/
- password recovery key is invalid on custom reset
- Send password to user instead of reset password link
- How to change “Reset Password” text on submit button
- Customize retrieve password message
- How to initiate password reset flow by code
- WooCommerce Lost Password reset goes to 404
- I have to reset the admin password each time
- Sending Reset Password email via Web API
- Problem with login / reset password links in users emails
- How to set password from frontend if have activation key and user login in url in wordpress?
- mysql update user’s password and activation key
- Reset Password – change from name and email address. It stucks at admin. Want to change it to info
- How to Disable Pre-population of Password on Password Reset
- How to change user password with wp-cli?
- Disable user registration password email
- Loosen/disable password policy
- Password Protect Custom Page
- Password protecting a page
- How do I create a password reset link?
- How to save Admin FTP password
- If I change the salt keys in my wp-config will all passwords break?
- How to add Wp_error using lostpassword_post hook when validating custom field?
- Duplicate hash method for password in .NET
- Hide password protected posts
- Access code/password only restricts page access, no user registration..?
- PasswordHash not found in namespace
- How to shorten length of auto generated password sent during registration?
- wp_hash_password unexpected behaviour
- Redirect a password protected page?
- Change default recovery link expiration time
- Set content type to HTML for lost password email only
- Password protecting template, secured content not showing if even password is right
- Make post password required to publish
- WordPress reset password returns invalid key
- Add error message on password protected pages
- How to change the language of the ‘Reset Password’ page
- How to set minimum length and error message for password recovery?
- Why is resetting the WordPress Users password not working?
- Get plain password on register
- How Authentication in wordpress works? wp_authenticate_username_password()
- Password Protected page not asking for a password
- I would like to password protect my entire WordPress site (ip validated), except for one page
- Custom login form for front-end user as well as admin
- how to remotely check a username / password from within a plugin
- Password changed [duplicate]
- How to get user password before being encrypted outside the wordpress core once add a new user from dashboard?
- wp_hash_password create a different hash everytime
- How to change password
- Password protect pages – allow more than one password
- Like to store multiple passwords in db table wp_posts field post_password?
- Password Protected Post is invisible until you login
- How secure is a wp-config file?
- How to check user’s password?
- How to Remove or Deactivate “Application Passwords” in WordPress
- What’s the algorithm to verify user password?
- resend user login & password with custom button
- WordPress admin creation through phpmyadmin not working
- Why does hashing a password result in different hashes, each time?
- Change password fields
- lostpassword_redirect filter is not used
- How to read third party cookie to access password protected pages
- How would I create a Password Protected Page with Content on it?
- wordpress custom password change problem
- Allow all reset password links within the past 24 hours to be valid and accepted
- Set id and password for each post
- I need help with wp_lostpassword, wp_register and wp_login_form
- Create Member who can’t be changed
- Automatically change the page password for more than one page
- Reset WordPress admin users to limit access
- $expiration_duration = apply_filters( ‘password_reset_expiration’, DAY_IN_SECONDS );
- Frontend custom forgot password page
- WordPress password reset not working
- Entering a WP site with a SMS code
- Password Protect content() on homepage
- Function called by password_reset action passed only 1 argument instead of 2 in PHP 7.2.11
- Allow users from my ASP.Net MVC site to access my private WordPress site
- Lost Password redirect to My Account
- Multiple pages protected by different passwords. Possible to track multiple passwords at a time?
- WordPress Protected Page Redirects to PDF
- Not able to log for the first time on a salted WordPress by creating pwd on BD
- Bypass a WordPress Password Protected Post or Page via a URL
- Password Protected Logout Button Not Working
- How do I password protect a page of posts on WordPress?
- forgot password
- WordPress not taking password and username
- Alter the reset password link
- Is it possible to send user new password after they clicking on forgot password in word press
- How WordPress hashes passwords
- Override the default password length when creating or updating a user profile
- Better way to change the default password reset url with the woocommerce one?
- Why can’t I create an Application Password?
- FTP Password (not private key-value pair) for EC2 Instance
- How can I redirect the user to the page they were on when they clicked “Lost Password” using “retrieve_password_message” filter
- Bypass a WordPress Password Protected Page via url