Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Redirect to custom page after password reset

On successfully password reset, redirect the user to a custom ‘password-reset-instruction’ page, using ‘lostpassword_redirect’ filter. Where the user gets more information on the reset process (like “Check your email… click the URL… Check your SPAM folder…”).

function redirect_after_password_reset( $lostpassword_redirect ) {
	return home_url( '/password-reset-instruction/' );
}
add_filter( 'lostpassword_redirect', 'redirect_after_password_reset', 10, 1 );