{"id":1966587,"date":"2025-08-22T14:32:46","date_gmt":"2025-08-22T18:32:46","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1966587"},"modified":"2025-08-22T15:08:12","modified_gmt":"2025-08-22T19:08:12","slug":"add-payment-method-column-for-woocommerce-in-attendee-export-list","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/add-payment-method-column-for-woocommerce-in-attendee-export-list\/","title":{"rendered":"Add &#8220;Payment Method&#8221; Column for WooCommerce in Attendee Export List"},"content":{"rendered":"\n<p>If you&#8217;re using <strong>Event Tickets Plus<\/strong> with WooCommerce, you may find it helpful to have payment details in your <strong>Attendee list<\/strong>\u2014for example, when processing offline payments and checking in attendees at the venue. By default, the attendee list only includes basic attendee information and does not include billing details.<\/p>\n\n\n\n<p>This snippet adds a new field called <strong>&#8220;Payment Method&#8221;<\/strong> to your attendee export, showing the payment method used when purchasing each ticket.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2412\" height=\"397\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/image-2.png\" alt=\"\" class=\"wp-image-1966594\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/image-2.png 2412w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/image-2-300x49.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/image-2-1024x169.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/image-2-768x126.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/image-2-1536x253.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/image-2-2048x337.png 2048w\" sizes=\"auto, (max-width: 2412px) 100vw, 2412px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\n * Add Payment Method column to Attendees CSV export\n *\/\nadd_filter( 'tribe_events_tickets_attendees_csv_export_columns', function ( $columns ) {\n    \/\/ Add a new column for Payment Method\n    $columns&#91;'payment_method'] = 'Payment Method';\n    return $columns;\n} );\n\n\/**\n * Populate the Payment Method column in the Attendees CSV export\n *\/\nadd_filter( 'tribe_events_tickets_attendees_table_column', function ( $value, $item, $column ) {\n\tif ( $column !== 'payment_method' ) {\n\t\treturn $value;\n\t}\n\n\tif ( empty( $item&#91;'order_id'] ) ) {\n\t\treturn '-';\n\t}\n\n\t$order = wc_get_order( $item&#91;'order_id'] );\n\n\tif ( $order ) {\n\t\treturn $order-&gt;get_payment_method_title();\n\t}\n\n\treturn '-';\n}, 10, 3 );<\/code><\/pre>\n\n\n\n<p>To learn how to add custom code snippet to your site, you can <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/best-practices-for-implementing-custom-code-snippets\/\">use our guide here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re using Event Tickets Plus with WooCommerce, you may find it helpful to have payment details in your Attendee list\u2014for example, when processing offline payments and checking in attendees at the venue. By default, the attendee list only includes basic attendee information and does not include billing details. This snippet adds a new field&#8230;<\/p>\n","protected":false},"author":71,"featured_media":1955565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[1],"tags":[],"stellar-product-taxonomy":[],"class_list":["post-1966587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"acf":[],"taxonomy_info":{"category":[{"value":1,"label":"Uncategorized"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Luan Luta","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/luanluta\/"},"comment_info":0,"category_info":[{"term_id":1,"name":"Uncategorized","slug":"uncategorized","term_group":0,"term_taxonomy_id":1,"taxonomy":"category","description":"","parent":0,"count":139,"filter":"raw","term_order":"0","cat_ID":1,"category_count":139,"category_description":"","cat_name":"Uncategorized","category_nicename":"uncategorized","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1966587"}],"version-history":[{"count":5,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966587\/revisions"}],"predecessor-version":[{"id":1966596,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966587\/revisions\/1966596"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1966587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1966587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1966587"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1966587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}