{"id":2971,"date":"2023-04-26T12:20:47","date_gmt":"2023-04-26T10:20:47","guid":{"rendered":"https:\/\/www.saskialund.de\/?p=2971"},"modified":"2023-04-26T14:06:46","modified_gmt":"2023-04-26T12:06:46","slug":"issue-fooevents-number-of-canceled-tickets","status":"publish","type":"post","link":"https:\/\/isla-stud.io\/en\/fooevents\/fooevents-anzahl-stornierter-tickets-ausgeben\/","title":{"rendered":"FooEvents - Output number of canceled tickets"},"content":{"rendered":"<p>When using third-party plugins, I repeatedly come across problems which, according to my customers, \u201cshould actually be solved by default in the respective premium plugin\u201d.<\/p>\n\n\n\n<p>The plugin \u201c<a title=\"To the manufacturer website of FooEvents\" href=\"https:\/\/www.fooevents.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">FooEvents<\/a>\u201d is no exception. It is an event plugin that enables the management of events and ticket sales via WooCommerce.<\/p>\n\n\n\n<p>I have programmed a dashboard widget for one of my customers that is displayed in the WordPress admin area directly after login and clearly lists all upcoming events together with the number of registered participants, a button for direct download of the participant list as a csv file and also canceled ticket numbers. It also prominently displays for each event as soon as all available tickets have been sold. In the case of this customer, a waiting list functionality is then activated. Whether the waiting list has been activated is clearly displayed in the dashboard widget.<\/p>\n\n\n\n<p>Below I have listed the code component that outputs the number of canceled FooEvents tickets. This may be useful for someone out there:<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/s-a-s-k-i-a\/ad7f6b881ea195779ac471655e96de09.js\"><\/script>\n\n\n\n<p>Do you have questions about the code? Questions about the FooEvents plugin or other comments? Then please use the comment function at the end of this article.<\/p>\n\n\n\n<p>Best regards<br>Saskia Teichmann (formerly Lund)<\/p>","protected":false},"excerpt":{"rendered":"<p>In this article, I will use a code example to show you how to output the number of canceled FooEvents tickets via an SQL query of the WordPress database.<\/p>","protected":false},"author":1,"featured_media":2972,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[646,644,20],"tags":[],"dipi_cpt_category":[],"class_list":["post-2971","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fooevents","category-code-snippets","category-tipps-tricks"],"acf":[],"_links":{"self":[{"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/posts\/2971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/comments?post=2971"}],"version-history":[{"count":0,"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/posts\/2971\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/media\/2972"}],"wp:attachment":[{"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/media?parent=2971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/categories?post=2971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/tags?post=2971"},{"taxonomy":"dipi_cpt_category","embeddable":true,"href":"https:\/\/isla-stud.io\/en\/wp-json\/wp\/v2\/dipi_cpt_category?post=2971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}