wp-login.php — redirect logged in users to custom URL
The best way to figure out what’s happening for a problem like this is to go to the source. Literally. Take a look in wp-login.php and look for an action that fires before any HTML rendering happens. The hook you’re looking for is login_init. Add a callback to it, check if the user is logged … Read more