Last active
August 29, 2015 14:28
-
-
Save barryhughes/3c71b7bc12acd88cebb5 to your computer and use it in GitHub Desktop.
Allows customers to access the WooCommerce Tickets product page for tickets. See https://theeventscalendar.com/knowledgebase/selling-tickets-from-the-woocommerce-products-page/.
This file contains hidden or 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 wootix_no_hijack() { | |
if ( ! class_exists( 'Tribe__Events__Tickets__Woo__Main' ) ) return; | |
$woo_tickets = Tribe__Events__Tickets__Woo__Main::get_instance(); | |
remove_filter( 'post_type_link', array( $woo_tickets, 'hijack_ticket_link' ), 10, 4 ); | |
} | |
add_action( 'init', 'wootix_no_hijack' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment