According to the WordPress Code Reference you have to pass the user object to get_password_reset_key()
instead of the mail address. Maybe a solution for your problem will be:
$user = get_user_by( 'email', '[email protected]' );
$reset_key = get_password_reset_key( $user );
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
- Reset password – set minimum length for new password
- 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
- 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
- Disable user registration password email
- Check for correct username on custom login form
- Missing URL in password reset email
- How can I change the default wordpress password hashing system to something custom?
- Conditional to test if post has password protection enabled
- Bypass password protected posts via GET variable
- Check the password of a user
- Create a USERNAME and PASSWORD protected WordPress page
- Why do generated passwords start/end with spaces?
- WooCommerce changes lost password reset link
- Safe to store SMTP password in wp-config.php?
- Access code/password only restricts page access, no user registration..?
- PasswordHash not found in namespace
- Forgot password not working
- Redirect a password protected page?
- WordPress: force users to change password on first login
- Can’t login to wordpress despite changing password to something known directly in MySQL or using “Password Reset by Email” feature
- Lost password link redirects to my-account/lost-password/,how to fix it back to default lost password
- Password protect custom template
- Custom password generator for users
- Where is the reset password key stored/generated?
- Password protecting template, secured content not showing if even password is right
- How validate usernames/passwords against WP’s database?
- WordPress reset password returns invalid key
- User password field is empty
- Password reset bug? – “Sorry, that key does not appear to be valid”
- How to set minimum length and error message for password recovery?
- Why is resetting the WordPress Users password not working?
- How to customize reset_url or $reset_url
- Customize reset password form redirect problem
- How Authentication in wordpress works? wp_authenticate_username_password()
- Password protection for page template
- Forgot Password/ Password Reset Page does not exist
- Enable Update button only when password is shown strong
- Adding parameters to password reset key
- How to limit the number of forgot password reset attempts in WordPress?
- Custom password form allows unlock two posts with the same password
- Generating the password reset link automatically
- Password protect pages – allow more than one password
- Like to store multiple passwords in db table wp_posts field post_password?
- Protect Passwords in wp_users with stronger protection than MD5
- Custom form for password protected page
- How to recover password from a user
- Woocommerce password Reset
- WordPress admin creation through phpmyadmin not working
- Redirecting to a custom forgot password page
- How to show my wordpress admin username & password?
- Can’t alter $lostpassword_url
- current user’s password check
- lostpassword_redirect filter is not used
- How to read third party cookie to access password protected pages
- Ask logged in user to re-enter password to access page “x”
- Password Protect or IP to access under development WordPress site otherwise shown a placeholder page
- Password protected sites
- Password-protected page redirecting to frontpage when I enter the password
- 2 accounts under same email preventing me from loging in
- Site only for users authenticated by different PHP application
- I need help with wp_lostpassword, wp_register and wp_login_form
- Automatically change the page password for more than one page
- Reset WordPress admin users to limit access
- I can’t recover my password
- Frontend custom forgot password page
- Cannot get function.php code to work to remove Lost Password link on live site
- How do I display the password field on the WordPress user registration screen?
- WordPress Protected Page Redirects to PDF
- Custom page password recovery
- Can I use core passworded page/post functions outside of wp-login.php?
- Is it possible to display newly generated password after wp_generate_password()?
- Password protect wp-login.php
- Revise my keyword but still cannot login
- Error when send reset password
- Alter the reset password link
- Is it possible to have users register without having a password?
- Password Protection for posts and pages [duplicate]
- Cant login, Password MUST be reset error, after reset
- WordPress reset password button not working
- check if post is set to “password protected”
- Override the default password length when creating or updating a user profile
- Why can’t I create an Application Password?
- FTP Password (not private key-value pair) for EC2 Instance
- My WordPress password for admin account is changing automatically