Redirect Facebook Users after login
-
I’m currently using the code snippet below to redirect logged in users to their profiles. But it doesn’t seem to work with users who sign in with their Facebook IDs:
<?php
function oci_login_redirect($redirect_to, $set_for, $user){
$redirect_to = bp_core_get_userurl($user->ID);
return $redirect_to;
}
add_filter('login_redirect', 'oci_login_redirect', 10, 3);
?>Does anyone know how I can hook the Facebook users into this redirect? Or is there another code snippet I can add?
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Redirect Facebook Users after login’ is closed to new replies.