How to move the RSVP form?

Home Forums Ticket Products Event Tickets Plus How to move the RSVP form?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1034303
    Kyle Held
    Participant

    The instructions here (https://theeventscalendar.com/knowledgebase/moving-the-ticket-form/) do not seem to apply to the RSVP form, but still work for the tickets. Would like exactly the same instruction for the RSVP form.

    Thanks

    #1034855
    Nico
    Member

    Hi there Kyle,

    Thanks for reaching out to us! Good question here ๐Ÿ™‚

    So the process would be the same, but ofcourse a bit tweaked:


    /**
    * Move RSVP Ticket form in events template
    */
    if (class_exists('Tribe__Tickets__RSVP')) {
    remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form' ), 5 );
    add_action( 'tribe_events_single_event_before_the_meta', array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form' ), 5 );
    }

    If you need to move the form in posts, you’ll need to use the following code instead:

    /**
    * Move RSVP Ticket form in posts template
    */
    if (class_exists('Tribe__Tickets__RSVP')) {
    remove_filter( 'the_content', array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form' ) );
    // re hook the function to run where needed
    }

    Please let me know if this does the trick,
    Best,
    Nico

    #1035765
    Kyle Held
    Participant

    Worked like a charm – thanks!

    #1036848
    Nico
    Member

    Stocked to hear Kyle ๐Ÿ™‚

    Iโ€™ll go ahead and close out this thread, but if you need help with anything else please donโ€™t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to move the RSVP form?’ is closed to new replies.