Hello, I’m using Event Espresso to set up an event booking system for my client. I would like to know if there are any developer documentation on how to check if the current logged in user has registered for an event and has paid for the event. There will be a page that should only be enabled once a user has paid for the event. Thanking in advance for your help.
This is a little more complex than it first sounds, for example, it is technically possible for users to purchase ticket on behalf of others which complicated things.
So, the first question, I can see you have the WP User integration add-on so are you looking specifically for registrations tied to the current user only?
Based on contact details or only registration linked to the current users contact?
Yes, for current user only. So I’m hoping to use the WordPress function “is_user_logged_in()” combined with perhaps another function that can check whether current user is registered and has paid for the event.
The idea is that only registered and paid users to the event can access certain content on pages. Hope this makes sense and it’s doable.
So to answer your question, I would like to access the registration and payment status linked to the current user, yes.
I appreciate your assistance with this.
Viewing 2 reply threads
The support post ‘How do I check if a user has paid for the 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.
Support forum for Event Espresso 3 and Event Espresso 4.