You can add the following to your functions.php
to achieve what you are after. The action init
doesn’t seem to fire in time for what you are looking for.
if($_GET['action']==='rp' && strpos($_SERVER['REQUEST_URI'],'wp-login.php')) {
$key = isset( $_GET['key'] ) ? $_GET['key'] : '';
$login = isset( $_GET['login'] ) ? $_GET['login'] : '';
wp_redirect( site_url( '/reset-password/' ) . '?key=' . $key . '&login=' . $login );
exit;
}
Related Posts:
- Check for correct username on custom login form
- Add error message on password protected page
- How to limit the number of forgot password reset attempts in WordPress?
- Password protected page with a form submits for me fine but for others redirects them back to the password prompt
- How to add a placeholder to the protected post password input
- How to call or add password input / generate password / password strenght meter in custom registration form?
- How to know if a tag has been added within a taxonomy?
- Reset form on onclick function
- What characters are allowed in an email address?
- Disable user registration password email
- What is an easy way to display a front-end user registration form?
- How to get current url in contact form 7
- How to pass on Google Adwords gclid variable to other pages
- Best way to create multi-step form with data saved to user account for later updating?
- Custom Registration Template/Page
- Reseting admin password through PHPMyadmin fails
- need to add attach thumbnail from my form
- Checkbox won’t check when label is clicked
- Nonce actions and names available via open source
- Performing a POST action on homepage goes to posts page
- Add contact form
- 404 on form submit [duplicate]
- Form Processing
- Reset recaptcha contact form 7 [closed]
- Saving checkbox/option list status?
- What is the valid phone number format accepted by contact-form-7 [closed]
- Creating a custom multilingual form
- not logged in users can’t submit form
- How to use TinyMCE in the quick edit form?
- post request does not redirect but why
- How to retrieve form data?
- Creating User Form Submission – Only allow them to see their own submissions
- Using Contact Forms to Send Private Information [closed]
- Styling my own password protected page, how to deal with wrong password?
- Embed interactive pdf
- Contact Form 7 not sending emails- no confirmation, no error [closed]
- Grab values from the query string to fill in hidden fields in ninja forms [closed]
- Make editor required for post from frontend
- Saving frontend form data in wordpress
- WordPress tabindex Order
- PHP form is not sending mail if I use mime type and version in header. How to solve this? [closed]
- Custom form in admin area, redirect in wrong page
- Form action URL unrecognized
- Is there a WordPress form plugin that can easily be configured for Google Analytics goals?
- Woocommerce password Reset
- How to code auto-retry for API call
- Redirecting to a custom forgot password page
- How to check form input against PHP variable?
- how to insert textbox value in existing database table in wordpress?
- Is it possible to pass variables to WordPress externally?
- Front end post form validation
- Exporting a form to a CSV file does not work in WordPress but it does in PHP
- How to redirect with success message in wordpress admin panel?
- WordPress – Users with contact form on profile
- How to stop iFrame form from reloading on mobile?
- Am receiving more than thousand mails in single day from ‘[email protected]’ continuously
- Sliding Register – Login Forms
- I’m needing to figure out how to create a page that user could create a “task” and it be selectable on a form
- contact form and WP loop
- AMP and Paypal form CORS issue
- wp_set_password() does not work!
- Timezone dropdown in form
- Unexpected token admin.php
- display a message if get form is empty
- Problem with login / reset password links in users emails
- Adding a different domain to existing WordPress site
- .html form added to a page
- why form in front-page.php redirect to blog page
- Sending email via function in page or setting up the action properly in another page
- How do i can data from my custom form to a custom table
- Form Sanitization and Validation
- Remove active cursor from form field
- import excel form into wordpress
- Custom forms + Polylang
- What is the proper way to embed the HTML of an external form such as payflowlink from paypal?
- How to make caption field required in media library?
- Displaying errors on the front end from my plugin
- Error when send reset password
- Username from e-mail
- Custom Contact Form Not Sending (but not giving error)
- Assigning input to variable
- Send message to author without showing email address [duplicate]
- Custom form on front page redirects on error page
- IE 9 Clears Form Fields
- Form validation on user profile edit
- custom form submission
- How to get formidable entry ID by post ID? [closed]
- Cant login, Password MUST be reset error, after reset
- Reset Password – change from name and email address. It stucks at admin. Want to change it to info
- Using form method in a template WordPress page
- Calling custom PHP from a HTML form post action gives 404 error
- How to add a checkbox with categories of entries to the form Contact Form 7 WordPress
- Conditional Logic for the Input Mask in Caldera Forms [closed]
- Form that stores emails [closed]
- Better way to change the default password reset url with the woocommerce one?
- Adding Mailchimp API key dynamically
- WordPress – custom user flow registration approval
- Gravity form with paypal adon should return custom receipt
- I cannot enter the letter C in the form [closed]
- Add options to WordPress Blocks form dropdown field