<?php
/*
* Hides QR codes from the Email/Tickets sent to purchasers
* No longer needed as of https://theeventscalendar.com/maintenance-release-for-the-week-of-27-may-2018/
*/
function tribe_neuter_qr () {
if ( class_exists( 'Tribe__Tickets_Plus__Main' ) ) {
$qr_class = Tribe__Tickets_Plus__Main::instance()->qr();
remove_action( 'tribe_tickets_ticket_email_ticket_bottom', array( $qr_class, 'inject_qr' ) );
}
}
add_action( 'init', 'tribe_neuter_qr', 10 );