Last active
October 10, 2017 02:44
-
-
Save GeoffEW/09005c81be890a562def47b05ae7fe3b to your computer and use it in GitHub Desktop.
Moves tickets when used in a page (not an event)
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 tribe_move_tickets_in_page ( ) { | |
if ( !class_exists('Tribe__Tickets_Plus__Commerce__WooCommerce__Main') ) return; | |
// remove default action | |
remove_action ( 'the_content', array ( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form_in_content' ) ); | |
// remove default action | |
add_action ( 'the_post', array ( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form' ) ); | |
} | |
tribe_move_tickets_in_page (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment