I have a multisite installation and when a user is created they are sent an email with details of their login etc.
In this they can click on a link which takes them to domain.com/wp-login.php. Once logged in they end up on their profile page.
I would like to make it so that they end up on the home page of the site rather than in the backend. I am fairly sure that I can add some code to functions.php in order to filter what happens after they are logged in, but after many attempts I cannot get it ito work.
Anyone any ideas. I would rather not use a plugin here, I would rather use some code in the themes functions.php as the same theme will run on all multisites.
Thanks,