Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

When a members logs in through WP admin, I would like to redirect them instantly to a custom URL. What will I need to change to make this possible? Respond with step-by-step details would be ideal.

share|improve this question

2 Answers 2

up vote 0 down vote accepted

I use this plugin It works dandy for setting different redirects for each role and even user capabilities.

share|improve this answer
    
Cheers Brian... –  Amanda Bynes Jul 24 '12 at 17:05

That is pretty easy to do with WP's login_redirect filter. A small snippet like this added to your functions.php file would do it:

/**
 * Return the url you want to redirect to after login.
 * This example redirects the user to the main page.
 */
add_filter( 'login_redirect', 'my_login_redirect' );
function my_login_redirect( $redirect_to ) {
     return site_url();
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.