Support

Home Forums Event Espresso Premium Best practices for managing registered participants as WP users

Best practices for managing registered participants as WP users

Posted: April 22, 2017 at 10:32 am

Viewing 1 reply thread


rhj4

April 22, 2017 at 10:32 am

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?


Tony

  • Support Staff

April 24, 2017 at 6:15 am

Hi there,

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:

do_action( 'AHEE__EED_WP_Users_SPCO__process_wpuser_for_attendee__user_user_created', $user, $attendee, $registration, $password );

Is fired when a user is created.

do_action( 'AHEE__EED_WP_Users_SPCO__process_wpuser_for_attendee__user_user_updated', $user, $attendee, $registration );

Is fired when a user is updated.

Viewing 1 reply thread

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.

Event Espresso