{"id":1320006,"date":"2017-07-12T07:33:33","date_gmt":"2017-07-12T14:33:33","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/"},"modified":"2017-07-12T07:33:33","modified_gmt":"2017-07-12T14:33:33","slug":"woocommerce-address-field-in-csv","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/","title":{"rendered":"Woocommerce address field in CSV"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I&#8217;ve been trying to implement the CSV example listed here:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"lNHmHVzv8a\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-info-in-csv-export\/\">Woocommerce info in CSV export?<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Woocommerce info in CSV export?&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-info-in-csv-export\/embed\/#?secret=sH77vhOeSX#?secret=lNHmHVzv8a\" data-secret=\"lNHmHVzv8a\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>However I am continually getting errors with the first function:<br \/>\n<strong>Parse error: syntax error, unexpected &#8216;add_filter&#8217; (T_STRING) <\/strong><\/p>\n<p>for <strong>add_filter( $filter_name, &#8216;tribe_export_custom_add_columns&#8217;, 100 );<\/strong><\/p>\n<p><strong>Function below:<\/strong><br \/>\nfunction tribe_export_custom_set_up ( $event_id ) {<\/p>\n<p>\t\/\/Add Handler for Community Tickets to Prevent Notices in Exports<br \/>\n\tif ( ! is_admin() ) {<br \/>\n\t\t$screen_base = &#8216;tribe_events_page_tickets-attendees&#8217;;<br \/>\n\t} else {<br \/>\n\t\t$screen      = get_current_screen();<br \/>\n\t\t$screen_base = $screen-&gt;base;<br \/>\n\t}<br \/>\n\t$filter_name = &#8220;manage_{$screen_base}_columns&#8221;;<br \/>\n\u200b<br \/>\n\tadd_filter( $filter_name, &#8216;tribe_export_custom_add_columns&#8217;, 100 );<br \/>\n\tadd_filter( &#8216;tribe_events_tickets_attendees_table_column&#8217;, &#8216;tribe_export_custom_populate_columns&#8217;, 10, 3 );<br \/>\n}<br \/>\nadd_action( &#8216;tribe_events_tickets_generate_filtered_attendees_list&#8217;, &#8216;tribe_export_custom_set_up&#8217; );<\/p>\n<p>I&#8217;ve tried:<br \/>\n&#8211; Adding the function to a completely different theme<br \/>\n&#8211; Editing the function to remove anything that might be offending<\/p>\n<p>But I still cannot get it to work and just get the error message with a white screen.<\/p>\n<p>Can you advise as to where I might be going wrong &#8211; I&#8217;m copying it directly, the thread is recent and others don&#8217;t seem to have had an issue with it?<\/p>\n<p>Many thanks,<\/p>\n<p>Penny<\/p>\n","protected":false},"template":"","class_list":["post-1320006","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>Woocommerce address field in CSV -<\/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\/woocommerce-address-field-in-csv\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Woocommerce address field in CSV -\" \/>\n<meta property=\"og:description\" content=\"Hi, I&#8217;ve been trying to implement the CSV example listed here: Woocommerce info in CSV export? However I am continually getting errors with the first function: Parse error: syntax error, unexpected &#8216;add_filter&#8217; (T_STRING) for add_filter( $filter_name, &#8216;tribe_export_custom_add_columns&#8217;, 100 ); Function below: function tribe_export_custom_set_up ( $event_id ) { \/\/Add Handler for Community Tickets to Prevent Notices [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/\" \/>\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\/woocommerce-address-field-in-csv\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/\",\"name\":\"Woocommerce address field in CSV -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-07-12T14:33:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/#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\":\"Woocommerce address field in CSV\"}]},{\"@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":"Woocommerce address field in CSV -","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\/woocommerce-address-field-in-csv\/","og_locale":"en_US","og_type":"article","og_title":"Woocommerce address field in CSV -","og_description":"Hi, I&#8217;ve been trying to implement the CSV example listed here: Woocommerce info in CSV export? However I am continually getting errors with the first function: Parse error: syntax error, unexpected &#8216;add_filter&#8217; (T_STRING) for add_filter( $filter_name, &#8216;tribe_export_custom_add_columns&#8217;, 100 ); Function below: function tribe_export_custom_set_up ( $event_id ) { \/\/Add Handler for Community Tickets to Prevent Notices [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/","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\/woocommerce-address-field-in-csv\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/","name":"Woocommerce address field in CSV -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-07-12T14:33:33+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-address-field-in-csv\/#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":"Woocommerce address field in CSV"}]},{"@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\/1320006","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\/1320006\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1320006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}