Login redirect to a custom page

Using this tip you can force users to be redirected to a particular page on login. This tip will overwrite the settings in the LMS -> Settings section.

1. Make sure you;ve child theme or WPLMS customiser plugin installed.

2. Paste below code in child theme -> functions.php (wp admin – appearance – editor – wplms child – functions.php) , or wplms customizer -> wplms_customizer.php ( wp admin – plugins – editor – wplms customizer – wplms_customizer.php)

add_filter('login_redirect','wplms_custom_login_redirection',999,3); 
function wplms_custom_login_redirection($redirect_url,$request_url,$user){
    $url = 'http://localhost/wplms2/activity';
    return $url;
}

Change the : http://xyz.com/login to your custom redirection page