{"id":1056397,"date":"2016-01-15T05:13:10","date_gmt":"2016-01-15T13:13:10","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/"},"modified":"2016-03-01T08:35:05","modified_gmt":"2016-03-01T16:35:05","slug":"adding-email-and-adress-to-the-atendee-csv-file","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/","title":{"rendered":"Adding Email and Adress to the Atendee CSV file"},"content":{"rendered":"<p>Hello,<br \/>\nI followed the instructions for adding the phone number on this thread: https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-attendee-telephone-number-to-attendee-list\/#post-953675<\/p>\n<p>It works well with the phone number, and the fact it appears in the same column is not ideal, but definitely a great help.<\/p>\n<p>What I am asking is whether this can be changed to add the address of the customer aswell. I tried editing it (im no expert at php, so probably a bad attempt) by replacing phone number with billing address like so:<\/p>\n<p>NOTE: I tried billing_address first, but since that didnt work i tried shipping_address, which also didnt work.<\/p>\n<pre><code>if ( function_exists( &#039;tribe_is_event&#039;) ) {\n\t\/**\n\t * Adds the phone number to the &quot;Purchaser Email&quot; column.\n\t * @link http:\/\/theeventscalendar.com\/support\/forums\/topic\/add-attendee-telephone-number-to-attendee-list\/\n\t *\/\n\tfunction tribe_953653_add_address_to_attendee_list( $value, $item, $column ) {\n\n\t\t\/\/ Change this column name to move the phone number to a different column.\n\t\tif ( &#039;purchaser_email&#039; != $column ) {\n\t\t\treturn $value;\n\t\t}\n\n\t\t$shipping_address = get_post_meta( $item[&#039;order_id&#039;], &#039;_shipping_address&#039;, true );\n\n\t\t\/\/ Remove the &lt;small&gt;&lt;\/small&gt; tags from this to have the phone number text display at full size.\n\t\tif ( ! empty( $shipping_address ) ) {\n\t\t\treturn $value . sprintf( &#039;&lt;br&gt;&lt;b&gt;Adress:&lt;\/b&gt; %s&#039;, sanitize_text_field( $shipping_address ) );\n\t\t}\n\n\t\treturn $value;\n\t}\n\n\tadd_filter( &#039;tribe_events_tickets_attendees_table_column&#039;, &#039;tribe_953653_add_address_to_attendee_list&#039;, 10, 3 );\n}\n<\/code><\/pre>\n<p>Any help on how to get this to work (or whether it can work at all) would be a great help!<br \/>\nKind Regards,<br \/>\nAindreas<\/p>\n","protected":false},"template":"","class_list":["post-1056397","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 Email and Adress to the Atendee CSV file -<\/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-email-and-adress-to-the-atendee-csv-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding Email and Adress to the Atendee CSV file -\" \/>\n<meta property=\"og:description\" content=\"Hello, I followed the instructions for adding the phone number on this thread: https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-attendee-telephone-number-to-attendee-list\/#post-953675 It works well with the phone number, and the fact it appears in the same column is not ideal, but definitely a great help. What I am asking is whether this can be changed to add the address of the customer [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-03-01T16:35:05+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-email-and-adress-to-the-atendee-csv-file\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/\",\"name\":\"Adding Email and Adress to the Atendee CSV file -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-01-15T13:13:10+00:00\",\"dateModified\":\"2016-03-01T16:35:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/#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\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Adding Email and Adress to the Atendee CSV file\"}]},{\"@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 Email and Adress to the Atendee CSV file -","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-email-and-adress-to-the-atendee-csv-file\/","og_locale":"en_US","og_type":"article","og_title":"Adding Email and Adress to the Atendee CSV file -","og_description":"Hello, I followed the instructions for adding the phone number on this thread: https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-attendee-telephone-number-to-attendee-list\/#post-953675 It works well with the phone number, and the fact it appears in the same column is not ideal, but definitely a great help. What I am asking is whether this can be changed to add the address of the customer [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/","article_modified_time":"2016-03-01T16:35:05+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-email-and-adress-to-the-atendee-csv-file\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/","name":"Adding Email and Adress to the Atendee CSV file -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-01-15T13:13:10+00:00","dateModified":"2016-03-01T16:35:05+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-email-and-adress-to-the-atendee-csv-file\/#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":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Adding Email and Adress to the Atendee CSV file"}]},{"@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\/1056397","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1056397\/revisions"}],"predecessor-version":[{"id":1069906,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1056397\/revisions\/1069906"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1056397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}