Is there a PHP function I can use to add an EXISTING user to an EXISTING event?
I’ve figured out that you can insert the user/attendee into the MySQL wp_events_member_rel table but first I would need to create a record in wp_events_attendee which has registration_id and attendee_session which I’m not sure how to generate. I’m also not sure if I MUST create a record in wp_events_attendee_meta (or any other table).
Basically, I have a list of existing users and I want to update some of their user_meta data and link them to specific events (which I manually created and have the event ID for).
It turns out there is an add-on that will let you import a list of attendees into the wp_events_attendee from a CSV file. You should be able to use this tool to link your existing users to specific events.
You’re welcome. Yes it will not automatically link WP Users with events, but it will programmatically add the registrations to the wp_events_attendee table.
The support post ‘[EE3] Add Attendee With Custom Code/PHP’ 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.