Forked from barryhughes/WooCommerce-product-page.php
Last active
December 1, 2015 14:47
-
-
Save theeventscalendar/afe12bc6047b6e423b2a 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 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