{"id":1340135,"date":"2017-08-24T21:38:20","date_gmt":"2017-08-25T04:38:20","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/"},"modified":"2017-08-25T22:55:50","modified_gmt":"2017-08-26T05:55:50","slug":"reuse-custom-post-and-tickets-by-deleting-attendees","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/","title":{"rendered":"Reuse Custom Post and Tickets by Deleting Attendees?"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I am creating a registration page for a 5k\/10k race that takes place annually. I am using WooCommerce, the Event Tickets Plus plugin and a custom post type (not the Events Calendar built-in Event post type). There are currently 3 different tickets associated with my event (General, Child and Senior) and I am also using a separate plugin to apply discounts to the ticket prices using the product IDs of the tickets associated with the event to determine which discounts are applied to which tickets. This all works great!<\/p>\n<p>Instead of having to create a new instance of my custom post type each year for new races and add new tickets to it, I would like to simply edit the current race event custom post to enter the new event date and other information as necessary. This event happens every year and besides the date, most everything else basically stays the same. It is the only event that will be on my site.<\/p>\n<p>I am wondering if it is possible for me to simply go into my custom event post and delete all the attendees associated with it after the event has finished and reuse the event post and it&#8217;s existing tickets for the next yearly race event? I won&#8217;t need to keep attendee information after the event has passed.<\/p>\n<p>This would allow me to not have multiple copies of the same 3 tickets for the each yearly event in the database as well as not require me to edit the existing discounts since the discounts are applied by using the product IDs associated with the tickets. If I have to create new tickets each time, they will have different IDs associated with them and I would need to modify the discounts code to use the new ticket IDs instead of the old ones which is not a huge deal but it would be nice not to need to do that.<\/p>\n<p>Does this sound like a reasonable way to handle my current scenario? I&#8217;m not sure if any issues would arise such as the counts of attendees or tickets sold etc. I would assume that after deleting the attendees that the attendee count would go back to zero and would start counting again once tickets start getting purchased again for the current race event?<\/p>\n<p>Hopefully I&#8217;ve explained the situation well enough? Since I&#8217;m still relatively early in the development stage, I don&#8217;t have any actual attendees in the system yet to try the above with. If there is a better or easier way of accomplishing what I am looking for, I would be open to that as well. If I need to create a new post. recreate the same tickets and edit the discounts code each time there&#8217;s a new event, it&#8217;s not the end of the world since it only needs to happen once a year but I&#8217;m just looking to make the process simple.<\/p>\n<p>Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-1340135","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>Reuse Custom Post and Tickets by Deleting Attendees? -<\/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\/reuse-custom-post-and-tickets-by-deleting-attendees\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Reuse Custom Post and Tickets by Deleting Attendees? -\" \/>\n<meta property=\"og:description\" content=\"Hello, I am creating a registration page for a 5k\/10k race that takes place annually. I am using WooCommerce, the Event Tickets Plus plugin and a custom post type (not the Events Calendar built-in Event post type). There are currently 3 different tickets associated with my event (General, Child and Senior) and I am also [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-08-26T05:55:50+00:00\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/\",\"name\":\"Reuse Custom Post and Tickets by Deleting Attendees? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-08-25T04:38:20+00:00\",\"dateModified\":\"2017-08-26T05:55:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/#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\":\"Reuse Custom Post and Tickets by Deleting Attendees?\"}]},{\"@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":"Reuse Custom Post and Tickets by Deleting Attendees? -","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\/reuse-custom-post-and-tickets-by-deleting-attendees\/","og_locale":"en_US","og_type":"article","og_title":"Reuse Custom Post and Tickets by Deleting Attendees? -","og_description":"Hello, I am creating a registration page for a 5k\/10k race that takes place annually. I am using WooCommerce, the Event Tickets Plus plugin and a custom post type (not the Events Calendar built-in Event post type). There are currently 3 different tickets associated with my event (General, Child and Senior) and I am also [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/","article_modified_time":"2017-08-26T05:55:50+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/","name":"Reuse Custom Post and Tickets by Deleting Attendees? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-08-25T04:38:20+00:00","dateModified":"2017-08-26T05:55:50+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reuse-custom-post-and-tickets-by-deleting-attendees\/#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":"Reuse Custom Post and Tickets by Deleting Attendees?"}]},{"@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\/1340135","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1340135\/revisions"}],"predecessor-version":[{"id":1340628,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1340135\/revisions\/1340628"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1340135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}