Posted: June 27, 2019 at 6:02 pm
|
Hi folks, I understand this’ll probably be a really specific scenario but I need to check if I’m missing something (I’ve been beating my head against the wall trying to figure out a way for some time). We run both Event Espresso and LifterLMS on our site. Sometimes the events we host are webinars, which we later turn into courses within LifterLMS. What my colleague would like to do is find a way to automatically enrol anyone who’s paid and registered for the webinar event into the corresponding LifterLMS course. I’ve gotten half way there using the Event Espresso addon, the one that signs the user up on event registration, as I am able to assign them to the role of Student, which Lifter uses. The final step is obviously going to require some customisation on my part, but I’m really not sure where I should be looking. I need some way to tell WordPress that *this webinar* in Event Espresso corresponds to *this course* in LifterLMS (fyi, we’re pre-creating the courses so we can potentially link the two). Like I said…really specific scenario, just after some info on where I might start customising, eg if anyone has worked out a way to do an extra/specific thing upon user registration? Cheers, |
Hi Min,
Just to note, you need to be careful as to what you assign as this point because the user account is created before registration is complete, meaning before they have paid.
For that, you can use a custom field on the event which can be as simple as adding the webinar ID (or whatever LifterLMS wants you to provide to enrole a user) to the field, then pulling that as a custom meta field from the event. If you have the event object thats as simple as How you manage those fields is up to you, ACF could be used for a ‘nicer’ output as again they are just custom fields linked to an event post.
For that I recommend you use a different hook, such as
It’s actually similar to what LearnDash do with Event Espresso so you might want to check them out. |
|
The support post ‘Auto-enrolling members into a course if sign up to event’ 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.