{"id":1546996,"date":"2018-06-05T18:57:18","date_gmt":"2018-06-06T01:57:18","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/"},"modified":"2018-06-05T18:57:18","modified_gmt":"2018-06-06T01:57:18","slug":"replace-rsvp-contact-details-with-attendee-details","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/","title":{"rendered":"Replace RSVP contact details with attendee details"},"content":{"rendered":"<p>Hi,<\/p>\n<p>We take RSVP bookings for events. There is always only a single attendee per RSVP.<br \/>\nWe did not want people to have to enter their name and email twice (seems silly!) so I hid the RSVP contact fields from the RSVP form and instead hard-coded some filler values into these fields (as the booking form would not submit without them).<br \/>\nThen I modified the RSVP.php file to grab the name and email of the first (and only) attendee and replace the filler RSVP contact details with the attendee details during the ticket save process.<br \/>\nThis worked fine!<br \/>\nHowever, we&#8217;ve updated to the latest version of the plugins and the code in RSVP.php has changed quite a bit.<br \/>\nI can&#8217;t locate the exact spot where I need to do the replacement of details.<\/p>\n<p>I&#8217;m not looking for you to write code for me, but it would be useful to have a little info on one or both of the following questions:<\/p>\n<p>1. In which function do the RSVPs actually get saved to the database?<\/p>\n<p>2. Is there an easier method than the above to substitute the attendee details for the RSVP contact details (such as with a functions.php snippet)? I already use a few of these and its nice not to have to go digging around in the core code.<\/p>\n<p>Thanks,<br \/>\nPeter.<\/p>\n","protected":false},"template":"","class_list":["post-1546996","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Replace RSVP contact details with attendee details -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Replace RSVP contact details with attendee details -\" \/>\n<meta property=\"og:description\" content=\"Hi, We take RSVP bookings for events. There is always only a single attendee per RSVP. We did not want people to have to enter their name and email twice (seems silly!) so I hid the RSVP contact fields from the RSVP form and instead hard-coded some filler values into these fields (as the booking [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/\",\"name\":\"Replace RSVP contact details with attendee details -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-06-06T01:57:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Replace RSVP contact details with attendee details\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Replace RSVP contact details with attendee details -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/","og_locale":"en_US","og_type":"article","og_title":"Replace RSVP contact details with attendee details -","og_description":"Hi, We take RSVP bookings for events. There is always only a single attendee per RSVP. We did not want people to have to enter their name and email twice (seems silly!) so I hid the RSVP contact fields from the RSVP form and instead hard-coded some filler values into these fields (as the booking [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/","name":"Replace RSVP contact details with attendee details -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-06-06T01:57:18+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/replace-rsvp-contact-details-with-attendee-details\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Replace RSVP contact details with attendee details"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1546996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1546996\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1546996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}