When an event participant registers, EE WP User plugin creates a user account but does not assign a password. I am also using Buddy Press to manage a private forum for each event. This forum will require that users login to visit the forum. This will require that they have a password. It appears that I must manually assign each user a password before they can participate in the forum.
Is there a hook that can be called when an EE event participant registers that will allow me to write the code to assign them to a BP group and give them a password, or is there an even better way to do this?
The EE WP User Integration plugin does assign the account with a password, it uses wp_create_user() to add the user which requires a password is passed to the function for it to work.
The password is not included within any emails sent to the user for security but an email is sent to the user stating they need to ‘reset’ the password. This is how WordPress core now functions when adding new users.
Is there a hook that can be called when an EE event participant registers that will allow me to write the code to assign them to a BP group and give them a password, or is there an even better way to do this?
There are hooks fired both when a user is created and updated, take a look within EED_WP_Users_SPCO.module.php within the WP Users add-on, you’ll find:
The support post ‘Best practices for managing registered participants as WP users’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.