Tribe__Tickets_Plus__Attendees_List::hook()
Hook the necessary filters and Actions!
Return
(void)
Source
File: src/Tribe/Attendees_List.php
public static function hook() {
$myself = self::instance();
// This will include before the RSVP
add_action( 'tribe_tickets_before_front_end_ticket_form', array( $myself, 'render' ), 4 );
// Unhook Event Ticket's "View your RSVPs" rendering logic so that we can re-render with ET+'s "Who's attending?" list.
add_action( 'init', array( $myself, 'unhook_event_tickets_order_link_logic' ) );
add_action( 'tribe_tickets_before_front_end_ticket_form', array( Tribe__Tickets__Tickets_View::instance(), 'inject_link_template' ), 4 );
// Add the Admin Option for removing the Attendees List
add_action( 'tribe_events_tickets_metabox_pre', array( $myself, 'render_admin_options' ) );
// Create the ShortCode
add_shortcode( 'tribe_attendees_list', array( $myself, 'shortcode' ) );
// Purging the attendees cache on all the modules
// @todo: make this a little bit more clean
add_action( 'event_tickets_rsvp_ticket_created', array( $myself, 'purge_transient' ), 10, 3 );
add_action( 'event_ticket_woo_attendee_created', array( $myself, 'purge_transient' ), 10, 3 );
add_action( 'event_tickets_woocommerce_tickets_generated_for_product', array( $myself, 'purge_transient_post_ticket' ), 10, 4 );
add_action( 'event_tickets_edd_ticket_created', array( $myself, 'edd_purge_transient' ), 10, 2 );
}