-
-
Save BeardedGinger/db2769758a1a51abb968cdeb814da22e to your computer and use it in GitHub Desktop.
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
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