{"id":1896671,"date":"2019-10-18T13:19:50","date_gmt":"2019-10-18T17:19:50","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/show-the-time-of-registration-purchase-of-an-rsvp-ticket-on-the-attendee-list-of-an-event\/"},"modified":"2020-01-19T12:39:46","modified_gmt":"2020-01-19T17:39:46","slug":"show-the-time-of-registration-purchase-of-an-rsvp-ticket-on-the-attendee-list-of-an-event","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/show-the-time-of-registration-purchase-of-an-rsvp-ticket-on-the-attendee-list-of-an-event\/","title":{"rendered":"Show Registration and Purchase Details in the Attendees Report"},"content":{"rendered":"<h3>Description<\/h3>\n<p>The following code will show the time of registration \/ purchase of an RSVP \/ ticket on the attendee list of an event.<\/p>\n<h3>Usage<\/h3>\n<p>Copy the below code into your (child) theme&#8217;s functions.php file (or wherever you usually put custom code.<\/p>\n<h3>Plugins<\/h3>\n<p>Event Tickets, (Event Tickets Plus)<\/p>\n<h3>Snippet<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_action( 'event_tickets_attendees_table_ticket_column', 'add_registration_time_to_attendee_details' );\nfunction add_registration_time_to_attendee_details( $item ) {\n\n\tif ( ! isset( $item&#x5B;'order_id'] ) ) {\n\t\treturn;\n\t}\n\n\tif ( $item&#x5B;'provider_slug'] == 'woo' ) {\n\t\t$order_id = $item&#x5B;'qr_ticket_id'];\n\t}\n\telse {\n\t\t$order_id = $item&#x5B;'order_id'];\n\t}\n\n\t$registration_time = get_the_date( 'F j, Y', $order_id );\n\n\tif ( empty( $registration_time ) ) {\n\t\treturn;\n\t}\n\n\tprintf( '&lt;div class=&quot;event-tickets-ticket-registration-time&quot;&gt;%1$s:&lt;br\/&gt;%2$s&lt;\/div&gt;', esc_html__( 'Registration Time', 'tribe-extension' ), sanitize_text_field( $registration_time ) );\n}\n<\/pre>\n<h3>Notes<\/h3>\n<ul>\n<li>Originally written in November 2018<\/li>\n<li>Tested with Event Tickets 4.8.3<\/li>\n<li>Author: Andr\u00e1s Guseo<\/li>\n<\/ul>\n<h3>Disclaimer<\/h3>\n<p>As with all of our recipes, please note that we share this in the hope it will be useful <strong>but without any guarantees or commitments<\/strong>. If you wish to use it, it is <em>your<\/em> responsibility to test it first of all and adapt it to your needs (or find someone who can do so on your behalf). We are unable to provide further support in relation to this recipe.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description The following code will show the time of registration \/ purchase of an RSVP \/ ticket on the attendee list of an event. Usage Copy the below code into your (child) theme&#8217;s functions.php file (or wherever you usually put custom code. Plugins Event Tickets, (Event Tickets Plus) Snippet add_action( &#8216;event_tickets_attendees_table_ticket_column&#8217;, &#8216;add_registration_time_to_attendee_details&#8217; ); function add_registration_time_to_attendee_details(&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","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":[79],"tags":[25,58,73],"stellar-product-taxonomy":[155],"class_list":["post-1896671","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-snippets","tag-customizations","tag-php","tag-rsvp","stellar-product-taxonomy-event-tickets"],"acf":[],"taxonomy_info":{"category":[{"value":79,"label":"Snippets"}],"post_tag":[{"value":25,"label":"Customizations"},{"value":58,"label":"PHP"},{"value":73,"label":"rsvp"}],"stellar-product-taxonomy":[{"value":155,"label":"Event Tickets"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"zach","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/zach\/"},"comment_info":0,"category_info":[{"term_id":79,"name":"Snippets","slug":"snippets","term_group":0,"term_taxonomy_id":79,"taxonomy":"category","description":"","parent":0,"count":136,"filter":"raw","term_order":"0","cat_ID":79,"category_count":136,"category_description":"","cat_name":"Snippets","category_nicename":"snippets","category_parent":0}],"tag_info":[{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":177,"filter":"raw","term_order":"0"},{"term_id":58,"name":"PHP","slug":"php","term_group":0,"term_taxonomy_id":58,"taxonomy":"post_tag","description":"","parent":20,"count":128,"filter":"raw","term_order":"0"},{"term_id":73,"name":"rsvp","slug":"rsvp","term_group":0,"term_taxonomy_id":73,"taxonomy":"post_tag","description":"","parent":0,"count":7,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896671","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1896671"}],"version-history":[{"count":1,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896671\/revisions"}],"predecessor-version":[{"id":1956151,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896671\/revisions\/1956151"}],"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=1896671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1896671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1896671"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1896671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}