Redirect Users after login
-
Hi,
I am trying to setup redirection based on on roles. It its not working through superslider but it does when I go from /wp-login.php. I am guessing the plugin is overriding this somewhere can you instruct me on how I can acheive this ?
function users_login_redirect($redirect_to, $request, $user) { return (in_array('administrator', $user->roles)) ? admin_url() : '/members'; } add_filter( 'login_redirect', 'users_login_redirect', 10, 3);
- The topic ‘Redirect Users after login’ is closed to new replies.