Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can use a hook to determine if the user is login from the login page or from widget of any other page and then redirect as per your choice.

    function my_login_redirect( $redirect_to, $request, $post ) {
    //is there a page to check
    global $post;
    if($post->ID == page id of your login/register page) {
    return get_bloginfo(‘url’) . “/custompage/”;
    } else {
    return $redirect_to;
    }
    }

    add_filter( ‘login_redirect’, ‘my_login_redirect’, 10, 3 );

    I haven’t tested the code …. but you can copy paste this code in your theme’s function.php and let me know. Remember to replace the id and custom page with your page ID and custom page slug name.

    It depends upon what redirect url you set for the social provider while creating the app.

    But by default this plugin will redirect you to the same page from where the user login or register. To change to any page … go tosettings–> Wp Social Login –> Widget Tab

    Then you will find an option to put the redirect url under Advanced settings.

Viewing 2 replies - 1 through 2 (of 2 total)