Support

Home Forums Event Espresso Premium Access to secured event content for registered users

Access to secured event content for registered users

Posted: November 12, 2019 at 9:02 am

Viewing 3 reply threads


clsmoothest

November 12, 2019 at 9:02 am

I just purchased Event Espresso to be used as an LMS because of its scheduling strength. I could not figure out how to provide the following feature using EE:

Users registered for a certain event should be able to access courseware content for that event after logging in. The system should automatically “unlock” the event’s courseware page.

Hope I’m not trying force a square peg in a round hole, but how can I do this using EE? Thank you.


Josh

  • Support Staff

November 12, 2019 at 7:46 pm

Hi,

I can think of a number of ways to do this. I should ask first though, will these users already have a user account before they register for an event, and will they be required to log in to that user account when they register for that event?

If so, then it’s fairly simple to add a new custom capability to the user account at the time of registration. This is a code example snippet that can be adapted for this purpose:
https://gist.github.com/joshfeck/941ff81380f16e948245f8e0e6c985b6

You can add the above to a functions plugin.

Then you set the courseware page to require that custom capability using a plugin like Restrict Content or Members.


clsmoothest

November 13, 2019 at 6:36 pm

Josh,
Thanks for the snippet. Would it accommodate the following use case:

User registers for a course ABC (event)
User either logs in or creates new account at check out
User returns to the course ABC (event) page and clicks “Course Materials” link:
– if user already logged in: Course ABC “Course Materials” is open
– if user NOT already logged in: userid/password prompted… Course ABC
“Course Materials” is open

To ease the manual effort of creating Course Materials pages for each Event, it would be neat if the a special Rich Text Field could simply be revealed on the Event based on whether the logged in user is register for that Event. Thank you for your feedback!


Josh

  • Support Staff

November 14, 2019 at 7:37 am

Hi,

The WP Users Integration add-on has options that let you require user registration and/or log in at checkout.

Then you can wrap the courseware content in a shortcode to require that user log in using a plugin like Restrict Content or Members.

Viewing 3 reply threads

The support post ‘Access to secured event content for registered 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