Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

[Closed] Lost password redirect suggestion

2 Posts
2 Users
1 Reactions
2,381 Views
Posts: 53
 Gal
Topic starter
(@galzil)
Trusted Member
Joined: 9 years ago

Just a small suggestion.

After the password reset page is submitted, add an option to redirect the user to the wpForo login page and not the Wordpress one.

My users were very confused as it logged them into the dashboard.

This is the code I'm using:

function wpse_lost_password_redirect() {

    // Check if have submitted
    $confirm = ( isset($_GET['action'] ) && $_GET['action'] == resetpass );

    if( $confirm ) {
        wp_redirect( home_url().'/community/?wpforo=signin' );
        exit;
    }
}

add_action('login_headerurl', 'wpse_lost_password_redirect');

1 Reply
Robert
Posts: 10592
Admin
(@robert)
Support Team
Joined: 10 years ago

Thank you for sharing this code.