/**
* Disables the public attendee lists on all events
*
* Removes the tribe_events_single_event_after_the_meta action that injects the attendee
* list that was introduced with the initial 4.1 release of Event Tickets Plus
*/
function disable_attendee_list_on_post() { if ( ! class_exists( 'Tribe__Tickets_Plus__Attendees_List' ) ) {return;
}
remove_action(
'tribe_events_single_event_after_the_meta',
array(
Tribe__Tickets_Plus__Attendees_List::instance(),
'render'
),
4
);
}
add_action( 'wp', 'disable_attendee_list_on_post' );