Hello guys&girls,
I have just updated the The Events Calendar PRO and WooCommerce Tickets plugins, however a fatal error occurred. I do have a custom theme, with custom code in the functions.php, which was working fine before the update.
I was able to comment out the lines of code in my functions.php that were causing the error, but I’d still like to fix it, so I get those custom functions to work, as they modify my email templates.
These are the following pieces of code that are causing the error:
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' ) );
}
and
remove_action('woocommerce_email_after_order_table', array(TribeWooTickets::get_instance(), 'add_tickets_msg_to_email'), 10, 2 );
I really appreaciate your help!
Thanks,
Cintia