[ad_1]
Hi @jujhar330
You can add the following code to your child theme function.php file, or you can use the Code Snippet plugin:
function redirect_on_login() {
$some_url="https://google.com";
wp_redirect( $some_url );
exit;
}
add_action( 'wp_login', 'redirect_on_login', 1 );Thank you!
Best Regards
Thank you very much, it works perfectly, Can I do this for the registration/signup as well, If yes how so?
Hi @jujhar330
I am glad to know that it worked for you. For signup redirect, you can use this code:
add_action('tutor_after_student_signup', function () {
wp_redirect('https://google.com');
exit;
});Thank you!
Best Regards
Thanks alot, Much appreciated.
