WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] Auto-login after register (9 posts)

  1. arihant2301
    Member
    Posted 1 year ago #

    Hi,

    Great plugin!!!

    Is it possible that users be automatically logged in after they register & then be redirected to a particular page (one time redirect only when users register)?.

    Regards

    http://wordpress.org/extend/plugins/theme-my-login/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    I plan to implement this feature in 6.3.

  3. arihant2301
    Member
    Posted 1 year ago #

    Great thanks!!
    Any idea by when it will be released?

  4. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    Not yet.

  5. IshenerZaph
    Member
    Posted 1 year ago #

    I'm also looking forward to this feature!

    Could you maybe provide some general guidance how I can implement this myself, as I really want it...

  6. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    function tml_redirect_url( $url, $action ) {
    	if ( 'register' == $action )
    		$url = 'YOUR URL HERE';
    	return $url;
    }
    add_filter( 'tml_redirect_url', 'tml_redirect_url', 10, 2 );
    
    function tml_new_user_registered( $user_id ) {
    	wp_set_auth_cookie( $user_id );
    }
    add_action( 'tml_new_user_registered', 'tml_new_user_registered' );
  7. IshenerZaph
    Member
    Posted 1 year ago #

    thank you!

    the second part, that one that logs in the user, works great.

    I couldn't get the first part to work, but it's ok, I found a way to do that

  8. toddheitner
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to implement the auto-login after registration but on a MultiSite installation. What I want is for users to create an account and automatically be logged in.

    I tried the code above, but after registration I just get the default "Congratulations! Your new blog is ready!" message and the user still has to manually log in.

    Is there a way to make this work?

    Thanks,
    Todd

  9. marteueh75
    Member
    Posted 1 year ago #

    hi,
    someone managed to solve this problem?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.