Skip to content

Instantly share code, notes, and snippets.

@elimn
Forked from theeventscalendar/move-edd-tickets-form.txt
Last active December 1, 2015 14:35
Show Gist options
  • Save elimn/0fc9bb9848dc5afbba40 to your computer and use it in GitHub Desktop.
Save elimn/0fc9bb9848dc5afbba40 to your computer and use it in GitHub Desktop.
MT | TEC | Move EDD Tickets Form above Event content
<?php
/*
* Move EDD Tickets Form above Event content
*/
if ( class_exists('Tribe__Tickets_Plus__Commerce__EDD__Main') ) {
remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Tickets_Plus__Commerce__EDD__Main::get_instance(), 'front_end_tickets_form'), 5 );
add_action( 'tribe_events_single_event_before_the_content', array( Tribe__Tickets_Plus__Commerce__EDD__Main::get_instance(), 'front_end_tickets_form') );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment