Tribe__Tickets_Plus__Commerce__WooCommerce__Email::__construct()


Source

File: src/Tribe/Commerce/WooCommerce/Email.php

	public function __construct() {

		$this->id             = 'wootickets';
		$this->title          = __( 'Tickets', 'event-tickets-plus' );
		$this->description    = __( 'Email the user will receive after a completed order with the tickets they purchased.', 'event-tickets-plus' );
		$this->subject        = __( 'Your tickets from {site_title}', 'event-tickets-plus' );
		$this->customer_email = true;

		// Triggers for this email
		add_action( 'wootickets-send-tickets-email', array( $this, 'trigger' ) );

		// Call parent constuctor
		parent::__construct();

		/**
		 * Allows for filtering whether the Woo tickets email is enabled.
		 *
		 * @deprecated 4.7.3
		 *
		 * @param string $is_enabled Defaults to 'yes'; whether the Woo tickets email is enabled.
		 */
		$this->enabled = apply_filters( 'wootickets-tickets-email-enabled', 'yes' );

		/**
		 * Allows for filtering whether the Woo tickets email is enabled.
		 *
		 * @since 4.7.3
		 *
		 * @param string $is_enabled Defaults to 'yes'; whether the Woo tickets email is enabled.
		 */
		$this->enabled = apply_filters( 'tribe_tickets_plus_email_enabled', 'yes' );

		$this->email_type = 'html';
	}