/**
  * Return an instance of this class.
  *
  * @since     1.0.0
  *
  * @return    object    A single instance of this class.
  */
 public static function get_instance()
 {
     // If the single instance hasn"t been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 */
// If this file is called directly, abort.
if (!defined("WPINC")) {
    die;
}
require_once plugin_dir_path(__FILE__) . "WooSimpleTickets.php";
require_once plugin_dir_path(__FILE__) . "includes/Class_update_ticket.php";
require_once plugin_dir_path(__FILE__) . "includes/Class_ticket_tab.php";
require_once plugin_dir_path(__FILE__) . "includes/ClassCheckoutSend.php";
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
register_activation_hook(__FILE__, array("WooSimpleTickets", "activate"));
register_deactivation_hook(__FILE__, array("WooSimpleTickets", "deactivate"));
WooSimpleTickets::get_instance();
UpdateTicketProduct::get_instance();
AddProducttab::get_instance();
ClassCheckoutSend::get_instance();
/**
 *  Add a custom email to the list of emails WooCommerce should load
 *
 * @since 0.1
 * @param array $email_classes available email classes
 * @return array filtered available email classes
 */
function add_ticket_order_woocommerce_email($email_classes)
{
    // include our custom email class
    require_once plugin_dir_path(__FILE__) . 'includes/Class_emails.php';
    // add the email class to the list of email classes that WooCommerce loads
    $email_classes['WC_Simple_ticket_Order_Email'] = new WC_Simple_ticket_Order_Email();
    return $email_classes;
}