Redirect a User After Login

You can redirect users who login to your site to another URL based on their role using this snippet. Just add it to your functions.php file: