Created
May 28, 2012 18:29
-
-
Save mestrewp/2820511 to your computer and use it in GitHub Desktop.
WordPress: Redirect User at Login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('login_redirect', 'change_login_redirect', 10, 3 ); | |
function change_login_redirect( $redirect_to, $request, $user) { | |
/* | |
using $user, you can change this on a per-user basis if you want | |
*/ | |
// options.php is just a sample, change as needed | |
return admin_url('options.php'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment