Forum Replies Created

Viewing 1 replies (of 1 total)
  • I use this plugin with wp3.7.
    You can redirect the user to the public page editing the file functions.php in your theme.
    add:

    add_filter("login_redirect", "gkp_subscriber_login_redirect", 10, 3);
        function gkp_subscriber_login_redirect($redirect_to, $request, $user) {
    
        if(is_array($user->roles))
        if(in_array('administrator', $user->roles)) return site_url('/wp-admin/');
    
        return home_url();
        }

    Pay attention to the kind of the user you are when you test; admin will allways be redirected to the admin page and regular users will be redirected to the public page.

Viewing 1 replies (of 1 total)