Reopening ticket about problems with password protected page and ticket form

Home Forums Ticket Products Event Tickets Plus Reopening ticket about problems with password protected page and ticket form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1191761
    Jack
    Participant

    This is the original ticket, Josh helped:

    Ticket form is visible on password protected page

    The code provided results in the content being displayed twice (see attachment).

    #1192338
    Jack
    Participant

    I changed the code into this, which seems to work. But Josh, if you see anything stupid in what I did, please let me know. I’m not a coder 😉

    <?php
    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( ) {
    		if ( ! post_password_required() ) {
    			
    			echo Tribe__Tickets__RSVP::get_instance()->front_end_tickets_form_in_content(  );
    		}
    	}
    }
    ?>
    #1192358
    Josh
    Participant

    Hey Jack,

    Thanks for following up here!

    As long as your content is still displaying there, I’d say this looks great! I apologize for the issue with the previous snippet there.

    Thanks!

    #1202663
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Reopening ticket about problems with password protected page and ticket form’ is closed to new replies.