Tribe__Tickets__RSVP::__construct()
Class constructor
Source
File: src/Tribe/RSVP.php
public function __construct() {
$main = Tribe__Tickets__Main::instance();
$this->tickets_view = Tribe__Tickets__Tickets_View::instance();
/* Set up parent vars */
$this->plugin_name = $this->pluginName = _x( 'RSVP', 'ticket provider', 'event-tickets' );
$this->plugin_path = $this->pluginPath = $main->plugin_path;
$this->plugin_url = $this->pluginUrl = $main->plugin_url;
parent::__construct();
$this->hooks();
add_action( 'init', array( $this, 'init' ) );
/**
* Whenever we are dealing with Redirects we cannot do stuff on `init`
* Use: `template_redirect`
*
* Was running into an issue of `get_permalink( $event_id )` returning
* the wrong url because it was too early on the execution
*/
add_action( 'template_redirect', array( $this, 'generate_tickets' ) );
add_action( 'event_tickets_attendee_update', array( $this, 'update_attendee_data' ), 10, 3 );
add_action( 'event_tickets_after_attendees_update', array( $this, 'maybe_send_tickets_after_status_change' ) );
}