Tribe__Tickets__Commerce__PayPal__Main::__construct()
Class constructor
Source
File: src/Tribe/Commerce/PayPal/Main.php
public function __construct() {
$main = Tribe__Tickets__Main::instance();
/* Set up some parent's vars */
$this->plugin_name = _x( 'Tribe Commerce', 'ticket provider', 'event-tickets' );
$this->plugin_path = $main->plugin_path;
$this->plugin_url = $main->plugin_url;
// mirror some properties from the class constants
$this->attendee_event_key = self::ATTENDEE_EVENT_KEY;
$this->attendee_product_key = self::ATTENDEE_PRODUCT_KEY;
$this->attendee_object = self::ATTENDEE_OBJECT;
parent::__construct();
$this->bind_implementations();
if ( ! $this->is_active() ) {
unset( parent::$active_modules['Tribe__Tickets__Commerce__PayPal__Main'] );
}
$this->tickets_view = tribe( 'tickets.commerce.paypal.view' );
$this->register_resources();
$this->hooks();
$this->is_loaded = true;
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |