Unable to create user in Discourse from WP with new registration form

Hi Angus,

In standard registration,

  1. The user goes to the form and adds their name, email and password
  2. Then the user is automatically logged in
  3. Then when the user clicks on community link, they are automatically logged in Discourse (as by now the Discourse Connect plugin has done it’s job to create a new user in Discourse)

For the second form,

  1. The user adds a name and email.
  2. We provide them with a temp password
  3. Rest of the process is the same i.e. the user logs in automatically on sign up
  4. But in this case, the user is not created in Discourse.

I don’t see any setting in Discourse Connect that is triggered by changing a form for registration. If there a hook that needs to be trigged on user registration in WP that is not trigged in the case of second form?

In fact, which hook in WordPress is used to create a user in Discourse? There must be an API call made to trigger activity in Discourse. Could it not fire for some reason?

1 Like