HOWTO: Easily Change Login Redirect in WordPress
Ever want to easily change the redirect for your WordPress site after a user logs in? You can simply add the code below to your theme’s functions.php file (change the URL in the $redirect_to line) and it will then allow you to change the URL that WordPress redirects users to after logging in.
add_action( 'login_form' , 'sdac_login_redirect' ); function sdac_login_redirect() { global $redirect_to; if ( !isset($_GET['redirect_to']) ) { $redirect_to = 'http://my-redirect-url.com/'; } }