How can I redirect to home after password reset
-
Hi!
I’ve been looking for a solution for days now, and none of them have worked. This is the last one I found and used it in my function.php file in my childtheme:
<?php
function wpse_lost_password_redirect() {// Check if have submitted
$confirm = ( isset($_GET[‘action’] ) && $_GET[‘action’] == resetpass );if( $confirm ) {
wp_redirect( home_url() );
exit;
}
}
add_action(‘login_headerurl’, ‘wpse_lost_password_redirect’);
?>How can I achieve this please, my site is all frontend, I don’t want users to go in the backend, it’ll confuse them.
I hope someone has the real solution.
Thanks!!!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How can I redirect to home after password reset’ is closed to new replies.