Home / Admin / Add Redirection to Custom Password Reset Form
Duplicate Snippet

Embed Snippet on Your Site

Add Redirection to Custom Password Reset Form

With this filter you can redirect any lost password requests to a custom reset form

40+
Code Preview
php
<?php
/* 
Redirect Lost Password to Custom Password Reset 
Original doc link: https://wpforms.com/how-to-customize-the-wordpress-password-reset-form/
For support, please visit: https://www.facebook.com/groups/wpformsvip
*/
function my_custom_lostpassword_url() {
    return home_url( '/reset-password/' );
}
add_filter( 'lostpassword_url', 'my_custom_lostpassword_url' );

Comments

Add a Comment