Forums
-
- Forum
- Posts
-
- Installation
- 28,527
- Troubleshooting
- 62,949
- Themes
- 10,453
- Plugins
- 15,405
- Requests & Feedback
- 15,041
- Showcase
- 3,250
-
Hi, you can use this in functions.php or somewhere where you initialize your code
/* Redirect to Splash screen if Non Admin */
function loginRedirect( $redirect_to, $request, $user ) {
return ( is_array( $user->roles ) && in_array( ‘administrator’, $user->roles ) ) ? admin_url() : site_url(“home/”);
}
add_filter( ‘login_redirect’, ‘loginRedirect’, 10, 3 );
/* Ends */