AI Search
Classic Search
Notifications
Clear all
Feb 21, 2017 10:43 am
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
Feb 22, 2017 2:07 am
Thank you for sharing this code.