WooTickets: Don't Send out Email with Tickets

Home Forums Ticket Products Event Tickets Plus WooTickets: Don't Send out Email with Tickets

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1099773
    Glen Draeger
    Participant

    There’s similar thread to this from 2014. But I tried this code:

    remove_action( ‘wootickets-send-tickets-email’, array( ‘TribeWooTicketsEmail’, ‘trigger’ ) );

    And it didn’t work.

    #1099779
    Glen Draeger
    Participant

    I did find the answer in more recent thread and this worked for me:

    /*
    * Events Tickets Plus – WooCommerce Tickets – Prevent Ticket Email from being sent.
    * @ Version 4.0
    */
    add_action( ‘init’, ‘wootickets_stop_sending_email’ );
    function wootickets_stop_sending_email() {
    if ( class_exists( ‘Tribe__Tickets_Plus__Commerce__WooCommerce__Main’ ) ) {
    $woo = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
    remove_filter( ‘woocommerce_email_classes’, array( $woo, ‘add_email_class_to_woocommerce’ ) );
    add_action( ‘woocommerce_email_after_order_table’, array( $woo, ‘add_tickets_msg_to_email’ ) );
    }
    }

    #1099875
    Brian
    Keymaster

    I am glad to see you were able to figure it out.

    I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘WooTickets: Don't Send out Email with Tickets’ is closed to new replies.