Tribe__Tickets__RSVP::hooks()
Registers all actions/filters
Source
File: src/Tribe/RSVP.php
public function hooks() {
add_action( 'wp_enqueue_scripts', array( $this, 'register_resources' ), 5 );
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_resources' ), 11 );
add_action( 'trashed_post', array( $this, 'maybe_redirect_to_attendees_report' ) );
add_filter( 'post_updated_messages', array( $this, 'updated_messages' ) );
add_action( 'rsvp_checkin', array( $this, 'purge_attendees_transient' ) );
add_action( 'rsvp_uncheckin', array( $this, 'purge_attendees_transient' ) );
add_action( 'tribe_events_tickets_attendees_event_details_top', array( $this, 'setup_attendance_totals' ) );
add_filter( 'tribe_get_cost', [ $this, 'trigger_get_cost' ], 10, 3 );
add_filter(
'event_tickets_attendees_rsvp_checkin_stati',
array( $this, 'filter_event_tickets_attendees_rsvp_checkin_stati' )
);
if ( is_user_logged_in() ) {
add_filter( 'tribe_tickets_rsvp_form_full_name', array( $this, 'rsvp_form_add_full_name' ) );
add_filter( 'tribe_tickets_rsvp_form_email', array( $this, 'rsvp_form_add_email' ) );
}
// Has to be run on before_delete_post to be sure the meta is still available (and we don't want it to run again after the post is deleted)
// See https://codex.wordpress.org/Plugin_API/Action_Reference/delete_post
add_action( 'before_delete_post', array( $this, 'update_stock_from_attendees_page' ) );
}