• I’ve a wp members and registration form already, with password field on it. I want it simple and quick i.e. when user submit registration form, as its not set to moderation so it auto login and then redirects to ‘mypage’ rather than it get congratulations message and being asked to login. as it become two step process I want it fast and simple.

    So basically I want to skip login form step for newly registered user. please help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    There is a tutorial on how to customize that type of process. It is in a section of the site that is only available to premium support subscribers, but I’ll provide the link anyway.

    If you want to write your own custom process of automatically logging a user in, one of the last actions to fire during the WP-Members registration process is wpmem_post_register_data. At that point, the data has been validated, the user inserted, and all registration data is available to the action hook. That would be the action to hook it to. You could use wpmem_set_as_logged_in() in the WP-Members API.

    • This reply was modified 2 years, 6 months ago by Chad Butler.
    Thread Starter sartajwali

    (@sartajwali)

    Ok Chad, thanks for reply. This could be default functionality to plugin btw.
    I disabled function that calls login form, and used auto login script there grabbed from google and then redirected to desired page, that worked for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto login after completing registration’ is closed to new replies.