{"id":1249740,"date":"2017-03-06T01:21:55","date_gmt":"2017-03-06T09:21:55","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/"},"modified":"2017-03-07T15:12:00","modified_gmt":"2017-03-07T23:12:00","slug":"adding-download-attendees-list-front-end-get-attendees_csv_nonce-code","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/","title":{"rendered":"Adding download attendees list front-end get attendees_csv_nonce code"},"content":{"rendered":"<p>For a client who finds it really hard to print the attendees list for each of their events I wanted to create a front-end button on each event page where they could directly download the CSV of that event. I thought the only url difference would be the event ID but there is also a attendees_csv_nonce code that looks something like this e0813242c8 is there a way to echo that code on the single event page?<\/p>\n<p>I have created a simple button that has the following URL<br \/>\n<code>&lt;a href=\"mydomain.com\/wp-admin\/edit.php?post_type=tribe_events&amp;page=tickets-attendees&amp;event_id=&lt;?php echo $event_id; ?&gt;&amp;attendees_csv=1&amp;attendees_csv_nonce=9d644e8a9c\" class=\"alloy-attendees\"&gt;<\/code><br \/>\nand it directly downloads the CSV to your browser if the event has that specific code , but on the rest of the event is jus goes to the attendees admin page.<\/p>\n","protected":false},"template":"","class_list":["post-1249740","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>Adding download attendees list front-end get attendees_csv_nonce code -<\/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\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding download attendees list front-end get attendees_csv_nonce code -\" \/>\n<meta property=\"og:description\" content=\"For a client who finds it really hard to print the attendees list for each of their events I wanted to create a front-end button on each event page where they could directly download the CSV of that event. I thought the only url difference would be the event ID but there is also a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-03-07T23:12:00+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=\"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\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/\",\"name\":\"Adding download attendees list front-end get attendees_csv_nonce code -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-03-06T09:21:55+00:00\",\"dateModified\":\"2017-03-07T23:12:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/#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\":\"Adding download attendees list front-end get attendees_csv_nonce code\"}]},{\"@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":"Adding download attendees list front-end get attendees_csv_nonce code -","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\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/","og_locale":"en_US","og_type":"article","og_title":"Adding download attendees list front-end get attendees_csv_nonce code -","og_description":"For a client who finds it really hard to print the attendees list for each of their events I wanted to create a front-end button on each event page where they could directly download the CSV of that event. I thought the only url difference would be the event ID but there is also a [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/","article_modified_time":"2017-03-07T23:12:00+00:00","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\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/","name":"Adding download attendees list front-end get attendees_csv_nonce code -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-03-06T09:21:55+00:00","dateModified":"2017-03-07T23:12:00+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-download-attendees-list-front-end-get-attendees_csv_nonce-code\/#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":"Adding download attendees list front-end get attendees_csv_nonce code"}]},{"@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\/1249740","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\/1249740\/revisions"}],"predecessor-version":[{"id":1250800,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1249740\/revisions\/1250800"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1249740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}