Tribe__Tickets__Tickets::__construct()
Source
File: src/Tribe/Tickets.php
public function __construct() {
// As this is an abstract class, we want to know which child instantiated it
$this->class_name = $this->className = get_class( $this );
$this->parent_path = $this->parentPath = trailingslashit( dirname( dirname( dirname( __FILE__ ) ) ) );
$this->parent_url = $this->parentUrl = trailingslashit( plugins_url( '', $this->parent_path ) );
// Register all Tribe__Tickets__Tickets api consumers
self::$active_modules[ $this->class_name ] = $this->plugin_name;
add_filter( 'tribe_events_tickets_modules', array( $this, 'modules' ) );
add_action( 'wp', array( $this, 'hook' ) );
/**
* Priority set to 11 to force a specific display order
*
* @since 4.6
*/
add_action( 'tribe_events_tickets_metabox_edit_main', array( $this, 'do_metabox_capacity_options' ), 11, 2 );
// Ensure ticket prices and event costs are linked
add_filter( 'tribe_events_event_costs', array( $this, 'get_ticket_prices' ), 10, 2 );
add_action( 'event_tickets_checkin', array( $this, 'purge_attendees_transient' ) );
add_action( 'event_tickets_uncheckin', array( $this, 'purge_attendees_transient' ) );
add_action( 'template_redirect', array( $this, 'maybe_redirect_to_attendees_registration_screen' ), 0 );
}