Tribe__Events__Community__Tickets__Main::__construct()

Constructor!


Source

File: src/Tribe/Main.php

	public function __construct() {
		$this->plugin_path = trailingslashit( EVENTS_COMMUNITY_TICKETS_DIR );
		$this->plugin_dir  = trailingslashit( basename( $this->plugin_path ) );
		$this->plugin_url  = trailingslashit( plugins_url( $this->plugin_dir ) );
		$this->plugin_slug = 'events-community-tickets';

		// Hook to 11 to make sure this gets initialized after events-tickets-woo
		add_action( 'tribe_plugins_loaded', array( $this, 'plugins_loaded' ) );
		add_action( 'woocommerce_cart_calculate_fees', array( $this, 'calculate_cart_fees' ) );
	}