{"id":1163874,"date":"2016-09-14T07:04:25","date_gmt":"2016-09-14T14:04:25","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/"},"modified":"2016-09-14T07:04:25","modified_gmt":"2016-09-14T14:04:25","slug":"i-need-to-trigger-a-function-once-a-ticket-is-purchased","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/","title":{"rendered":"I need to trigger a function once a ticket is purchased"},"content":{"rendered":"<p>I use Event Tickets Plus to sell seminar tickets with good results. I would now like to start selling tickets to a webinar.<\/p>\n<p>I plan on using GoToWebinar because I already have an account established with them. GoToWebinar have an API where I can upload participant registration so that the participant doesn&#8217;t have to enter the some thing twice.<\/p>\n<p>I&#8217;m looking for a function, hook, filter, anything that I can use to identify an Attendee&#8217;s name and email and apply that to the GoToWebinar API.<\/p>\n<p>I was wondering about inserting code into the email.php, so that when the Attendee receives their ticket information I can insert a small function to check whether the ticket is to a webinar and then use custom fields in the event to store Webinar Keys and the like.<\/p>\n<p>Is there a better way? I&#8217;ve been looking through the Codex and Knowledgeable for a while but haven&#8217;t found anything similar.<\/p>\n<p>Thanks,<br \/>\nTravis<\/p>\n","protected":false},"template":"","class_list":["post-1163874","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>I need to trigger a function once a ticket is purchased -<\/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\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I need to trigger a function once a ticket is purchased -\" \/>\n<meta property=\"og:description\" content=\"I use Event Tickets Plus to sell seminar tickets with good results. I would now like to start selling tickets to a webinar. I plan on using GoToWebinar because I already have an account established with them. GoToWebinar have an API where I can upload participant registration so that the participant doesn&#8217;t have to enter [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/\" \/>\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\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/\",\"name\":\"I need to trigger a function once a ticket is purchased -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-09-14T14:04:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/#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\":\"I need to trigger a function once a ticket is purchased\"}]},{\"@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":"I need to trigger a function once a ticket is purchased -","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\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/","og_locale":"en_US","og_type":"article","og_title":"I need to trigger a function once a ticket is purchased -","og_description":"I use Event Tickets Plus to sell seminar tickets with good results. I would now like to start selling tickets to a webinar. I plan on using GoToWebinar because I already have an account established with them. GoToWebinar have an API where I can upload participant registration so that the participant doesn&#8217;t have to enter [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/","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\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/","name":"I need to trigger a function once a ticket is purchased -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-09-14T14:04:25+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-need-to-trigger-a-function-once-a-ticket-is-purchased\/#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":"I need to trigger a function once a ticket is purchased"}]},{"@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\/1163874","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\/1163874\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1163874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}