Skip to content

Instantly share code, notes, and snippets.

@barryhughes
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barryhughes/36a276dca395ee0ea20c to your computer and use it in GitHub Desktop.
Save barryhughes/36a276dca395ee0ea20c to your computer and use it in GitHub Desktop.
add_action( 'tribe_events_after_the_event_title', 'add_ticket_form_to_list_view' );
function add_ticket_form_to_list_view() {
if ( ! class_exists( 'TribeWooTickets' ) || ! function_exists( 'tribe_is_list_view' ) ) return;
if ( tribe_is_list_view() ) TribeWooTickets::get_instance()->front_end_tickets_form( '' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment