Redirection after login
-
Hello,
This plugin is marvelous so far, the only issue I have is to redirect after login (to a different site). I tested the following code (2 tests), but upon logging in, the user is redirected to the homepage.function pugs_after_auth($wp_user, $exlog_user_data) { wp_redirect( 'myurlhere?username=' . $exlog_user_data['user_login'] ); exit; } add_action('exlog_hook_action_authenticated', 'pugs_after_auth', 10, 2); add_filter( 'login_redirect', function( $url, $query, $user ) { return 'https://google.ca'; }, 10, 3 );
Anyone knows if I’m forgetting something?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Redirection after login’ is closed to new replies.