Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
MT | TEC | Hide QR codes from the Email/Tickets sent to purchasers
<?php
/*
* Hides QR codes from the Email/Tickets sent to purchasers
*/
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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment