• hi, thank you for the great plugin.

    i am wondering why after i login to GOOGLE it forward me back to /wp-admin/ page ???? should’nt i go to the main site?
    i set the user role as a customer, i don’t want to redirect them to wp-admin!
    by the way, facebook is redirecting to the main site, i had this issue only with google.

    how can i get rid of this?

    thank you .

    https://wordpress.org/plugins/wordpress-social-login/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter xbaha

    (@xbaha)

    ok i found the solution,
    but still would like to know why not redirect to home:

    add_action(‘admin_init’, ‘no_mo_dashboard’);
    function no_mo_dashboard() {
    if (!current_user_can(‘manage_options’) && $_SERVER[‘DOING_AJAX’] != ‘/wp-admin/admin-ajax.php’) {
    wp_redirect(home_url()); exit;
    }
    }

    where should i edit this code

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

The topic ‘users are redirected to /wp-admin/ with google login’ is closed to new replies.