Tribe__Tickets__Commerce__PayPal__Main::hooks()
Registers all actions/filters
Source
File: src/Tribe/Commerce/PayPal/Main.php
public function hooks() {
// if the hooks have already been bound, don't do it again
if ( $this->is_loaded ) {
return false;
}
add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_resources' ], 11 );
add_action( 'trashed_post', [ $this, 'maybe_redirect_to_attendees_report' ] );
add_filter( 'post_updated_messages', [ $this, 'updated_messages' ] );
add_action( 'tpp_checkin', [ $this, 'purge_attendees_transient' ] );
add_action( 'tpp_uncheckin', [ $this, 'purge_attendees_transient' ] );
add_action( 'tribe_events_tickets_attendees_event_details_top', [ $this, 'setup_attendance_totals' ] );
add_action( 'init', [ $this, 'init' ] );
add_action( 'init', tribe_callback( 'tickets.commerce.paypal.orders.report', 'hook' ) );
add_action( 'event_tickets_attendee_update', [ $this, 'update_attendee_data' ], 10, 3 );
add_action( 'event_tickets_after_attendees_update', [ $this, 'maybe_send_tickets_after_status_change' ] );
add_filter(
'event_tickets_attendees_tpp_checkin_stati',
[ $this, 'filter_event_tickets_attendees_tpp_checkin_stati' ]
);
add_action( 'admin_init', tribe_callback( 'tickets.commerce.paypal.notices', 'hook' ) );
add_action( 'tribe_tickets_attendees_page_inside', tribe_callback( 'tickets.commerce.paypal.orders.tabbed-view', 'render' ) );
add_action( 'tribe_events_tickets_metabox_edit_advanced', [ $this, 'do_metabox_advanced_options' ], 10, 2 );
add_filter( 'tribe_tickets_stock_message_available_quantity', tribe_callback( 'tickets.commerce.paypal.orders.sales', 'filter_available' ), 10, 4 );
add_action( 'admin_init', tribe_callback( 'tickets.commerce.paypal.oversell.request', 'handle' ) );
add_filter( 'tribe_tickets_get_default_module', [ $this, 'deprioritize_module' ], 5, 2 );
add_filter( 'tribe_tickets_tickets_in_cart', [ $this, 'get_tickets_in_cart' ], 10, 1 );
add_action( 'wp_loaded', [ $this, 'maybe_redirect_to_attendees_registration_screen' ], 1 );
add_action( 'wp_loaded', [ $this, 'maybe_delete_expired_products' ], 0 );
add_filter( 'tribe_attendee_registration_form_classes', [ $this, 'tribe_attendee_registration_form_class' ] );
add_action( 'tickets_tpp_ticket_deleted', [ $this, 'update_stock_after_deletion' ], 10, 3 );
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |