Hello,
I am trying to remove “You’ll receive your ticket in another email” in the order confirmation email to both the customer and the admin email to me.
I have added the below code to my child functions.php. However, it is not working. I got this from here:
Remove tickets email
https://gist.github.com/MZAWeb/d18252e91b6328abbf93
Add to functions.php:
add_action( ‘init’, ‘wootickets_stop_sending_email’ );
function wootickets_stop_sending_email() {
$woo = TribeWooTickets::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’ ) );
}
remove_action(‘woocommerce_email_after_order_table’, array(TribeWooTickets::get_instance(), ‘add_tickets_msg_to_email’), 10, 2 );
Thank You