Skip to content

Instantly share code, notes, and snippets.

@BeardedGinger
Created October 27, 2016 13:54
Show Gist options
  • Save BeardedGinger/db2769758a1a51abb968cdeb814da22e to your computer and use it in GitHub Desktop.
Save BeardedGinger/db2769758a1a51abb968cdeb814da22e to your computer and use it in GitHub Desktop.
if ( class_exists( 'Tribe__Tickets__RSVP' ) ) {
remove_filter( 'the_content', array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form_in_content' ), 11 );
add_action( 'genesis_entry_content', 'password_protected_ticket_form', 10 );
function password_protected_ticket_form( $content ) {
if ( ! post_password_required() ) {
$content = get_the_content();
echo Tribe__Tickets__RSVP::get_instance()->front_end_tickets_form_in_content( $content );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment