• 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 5 years, 11 months ago by a608237.
Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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)
  • The topic ‘Require login/account to register for event’ is closed to new replies.