Created
September 14, 2016 22:15
-
-
Save GeoffEW/303a051428692899e3ed6eb6cabd7cd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function strip_tribe_tickets_order_link() { | |
if ( ! class_exists( 'Tribe__Tickets__Tickets_View' ) ) { | |
return; | |
} | |
$tickets_view = Tribe__Tickets__Tickets_View::instance(); | |
remove_action( 'tribe_events_single_event_after_the_meta', array( $tickets_view, 'inject_link_template' ), 4 ); | |
remove_filter( 'the_content', array( $tickets_view, 'inject_link_template_the_content' ), 9 ); | |
} | |
add_action( 'wp_loaded', 'strip_tribe_tickets_order_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment