Support » Plugin: Event Espresso 4 Decaf - Event Registration Event Ticketing » Require login/account to register for event

  • Resolved a608237

    (@a608237)


    I would like to require my prospective attendees to create an account to register. I’ve looked through the Event Espresso database tables and there does not seem to be a link between the attendee_meta table and wp_users (i.e. User_id). Where can I locate the user ID of the attendees?

    Thanks in advance.

    • This topic was modified 8 months, 1 week ago by  a608237.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Josh Feck

    (@builtbynorthby)

    Hi,

    Attendees are not automatically given a user account, so they wouldn’t necessarily have a user ID.

    What you can do is restrict access to the event’s page using a plugin like Restrict Content and some custom code for restricting access to the event page. With Restrict Content you can set a user role level to allow access to specific WordPress posts/pages.

    This example code shows how to restrict access to the part of the event page that allows for selecting tickets, and show a message to log in instead:

    https://gist.github.com/joshfeck/60fdc20490effadf80cd45ca0b841253

    You can add the above to a functions plugin or into your WordPress child theme’s functions.php file.

    Plugin Contributor Josh Feck

    (@builtbynorthby)

    Hi,

    I saw in another topic, where I helped you with a related issue, you mentioned you were able to achieve this. So I’m going to marked this as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.