/** * Class constructor */ public function __construct() { /* Set up some parent's vars */ $this->pluginName = __('Easy Digital Downloads', 'edd'); $this->pluginSlug = 'eddtickets'; $this->pluginPath = trailingslashit(EVENT_TICKETS_PLUS_DIR); $this->pluginDir = trailingslashit(basename($this->pluginPath)); $this->pluginUrl = trailingslashit(plugins_url($this->pluginDir)); $this->mailer = new Tribe__Tickets_Plus__Commerce__EDD__Email(); $this->stock_control = new Tribe__Tickets_Plus__Commerce__EDD__Stock_Control(); parent::__construct(); $this->hooks(); }
/** * Class constructor */ public function __construct() { /* Set up some parent's vars */ $this->pluginName = 'WPEC'; $this->pluginSlug = 'wpec'; $this->pluginPath = trailingslashit(EVENT_TICKETS_PLUS_DIR); $this->pluginDir = trailingslashit(basename($this->pluginPath)); $this->pluginUrl = trailingslashit(plugins_url($this->pluginDir)); parent::__construct(); $this->hooks(); }
/** * Class constructor */ public function __construct() { /* Set up some parent's vars */ $this->pluginName = 'WooCommerce'; $this->pluginSlug = 'wootickets'; $this->pluginPath = trailingslashit(EVENT_TICKETS_PLUS_DIR); $this->pluginDir = trailingslashit(basename($this->pluginPath)); $this->pluginUrl = trailingslashit(plugins_url($this->pluginDir)); parent::__construct(); $this->hooks(); $this->orders_report(); }
/** * Class constructor */ public function __construct() { $main = Tribe__Tickets__Main::instance(); $this->tickets_view = Tribe__Tickets__Tickets_View::instance(); /* Set up some parent's vars */ $this->pluginName = _x('RSVP', 'ticket provider', 'event-tickets'); $this->pluginPath = $main->plugin_path; $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')); }
/** * Class constructor */ public function __construct() { $main = Tribe__Tickets__Main::instance(); /* Set up some parent's vars */ $this->pluginName = 'RSVP'; $this->pluginPath = $main->plugin_path; $this->pluginUrl = $main->plugin_url; parent::__construct(); $this->init(); $this->hooks(); }
/** * Class constructor */ public function __construct() { $main = Tribe__Tickets__Main::instance(); /* Set up some parent's vars */ $this->pluginName = 'RSVP'; $this->pluginPath = $main->plugin_path; $this->pluginUrl = $main->plugin_url; parent::__construct(); 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')); }
/** * Class constructor */ public function __construct() { $main = Tribe__Tickets__Main::instance(); /* Set up some parent's vars */ $this->pluginName = 'RSVP'; $this->pluginPath = $main->plugin_path; $this->pluginUrl = $main->plugin_url; parent::__construct(); add_action('init', array($this, 'init')); }
/** * Class constructor */ public function __construct() { $this->pluginName = 'Shopp'; // This string is used for form a link to the product editor $this->pluginSlug = 'shopptickets'; $this->pluginPath = trailingslashit(EVENT_TICKETS_PLUS_DIR); $this->pluginDir = trailingslashit(basename($this->pluginPath)); $this->pluginUrl = trailingslashit(plugins_url($this->pluginDir)); parent::__construct(); $this->setup(); $this->hooks(); }