If logged in user has already RSVP'd to event

Home Forums Calendar Products Events Calendar PRO If logged in user has already RSVP'd to event

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1546431
    tompha
    Participant

    Hi there,

    How do I tell if the user has already RSVP’d to the event on the single-event.php page?

    Thanks,
    Tom

    #1547149
    tompha
    Participant

    The following did the trick

    
    $view      = Tribe__Tickets__Tickets_View::instance();
    $post_id   = get_the_ID();
    $user_id   = get_current_user_id();
    $user_has_rsvp = $view->has_rsvp_attendees( $post_id, $user_id );
    
    #1547297
    Jennifer
    Keymaster

    Hi Tom,

    Thanks for posting your solution here!

    By default, if a user is logged in when they purchase tickets, they will see a message on that screen (when they are logged in) that tells them that they have registered for that event – this article has some more information on how this works.

    If there is anything else that I can help you with, please let me know!

    Thanks,

    Jennifer

    #1563737
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘If logged in user has already RSVP'd to event’ is closed to new replies.