Created
February 16, 2017 10:39
-
-
Save nickdavis/08e52d1e7d21a007fefbd80334adb012 to your computer and use it in GitHub Desktop.
Check if user is already registered for event in The Events Calendar / Event Tickets, in this example the check is included in the orders-link.php template file which you can override by including it in a tribe-events/tickets folder in your theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$view = Tribe__Tickets__Tickets_View::instance(); | |
$event_id = get_the_ID(); | |
$user_id = get_current_user_id(); | |
$user_has_rsvp = $view->has_rsvp_attendees( $event_id, $user_id ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment