Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Login on Registration #166

Open
jaswrks opened this issue Mar 19, 2015 · 3 comments
Open

Auto-Login on Registration #166

jaswrks opened this issue Mar 19, 2015 · 3 comments

Comments

@jaswrks
Copy link
Contributor

@jaswrks jaswrks commented Mar 19, 2015


KB Article Creation Checklist
  • Write initial draft for this KB Article; label this issue draft and either questions or tutorials
  • Add required YAML configuration
  • Add Tags for this KB Article to the YAML config (see YAML Keys (Explained))
  • Edit and finalize draft for publishing (remove draft label, add draft-finalized label)
  • Assign Issue to yourself and create Markdown file (remove draft-finalized label, add pending)
  • Project Lead: Review and Publish KB Article (remove pending label, add published label)
Additional TODOs

Additional TODO list items go here.


Markdown File: http://wsharks.com/1DCbO1r
Published KB Article: http://s2member.com/kb-article/auto-login-on-registration/


@BugRat

This comment has been minimized.

Copy link

@BugRat BugRat commented May 12, 2015

Thank you for the Auto-Login script Jason, much appreciated.
Is it possible to display the response section text on the page the MU Plugin loads after the checkout?

I am referring to the thank you message in the form-response DIV tag that appears on the screen after the checkout when the Auto-Login plugin is not installed, see screenshot.

Thank you for your time.

checkout-response-section

@jaswrks

This comment has been minimized.

Copy link
Contributor Author

@jaswrks jaswrks commented Aug 28, 2015

A fork of wpsharks/s2member#689 (comment)

There has been a report from @KTS915 that this article might be outdated now w/ WordPress v4.3.

@KTS915 writes...

I know this thread is now closed, but I just wanted to update the info on the autologin plugin.

It appears that adding an explicit redirect does the job. So now I have the last function as this:

function _s2_auto_login_after_registration() // Pro Form redirection handler.
{
    $vars = $GLOBALS['_s2_auto_login_after_registration_vars'];
    c_ws_plugin__s2member_login_redirects::login_redirect($vars['login'], $vars['user']);
    wp_redirect( esc_url( home_url( "/welcome/" ) ) );
    exit();
}
@jaswrks jaswrks reopened this Aug 28, 2015
@jaswrks

This comment has been minimized.

Copy link
Contributor Author

@jaswrks jaswrks commented Aug 28, 2015

Is it possible to display the response section text on the page the MU Plugin loads after the checkout?

Oh goodness. I completely missed your question @BugRat. Very sorry.

No, that is not possible at the moment, but I will see if I can find a way to accomplish this whenever we take another look and update the article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.