{"id":1896608,"date":"2019-10-18T13:19:37","date_gmt":"2019-10-18T17:19:37","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/disabling-rsvp-confirmation-emails-2\/"},"modified":"2023-11-26T17:46:50","modified_gmt":"2023-11-26T22:46:50","slug":"disabling-rsvp-confirmation-emails","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/disabling-rsvp-confirmation-emails\/","title":{"rendered":"Disable RSVP Confirmation Emails"},"content":{"rendered":"\n<p class=\"has-background\" style=\"background-color:var(--global-palette8)\">\u2728 This article covers how to disable the RSVP email for legacy emails. Since <strong>Event Tickets 5.6.0<\/strong>, you can do this via settings. <a href=\"https:\/\/evnt.is\/event-tickets-emails\">Learn more<\/a>.<\/p>\n\n\n\n<p>When folks RSVP to events on your site, they receive an email confirmation of their RSVP. This is not <em>quite<\/em> a &#8220;ticket&#8221; in the traditional sense, and so we are often asked if this confirmation email can be disabled.<\/p>\n\n\n\n<p>With a bit of custom code, you can prevent the sending of the RSVP confirmation emails by adding the following line of code to your theme&#8217;s <code>functions.php<\/code> file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'tribe_rsvp_email_recipient', '__return_empty_array' );\n<\/pre><\/div>\n\n\n<p>Since Event Tickets 5.1 there is also the possibility to add attendee RSVPs manually to an event through the back-end. The attendee will receive an email confirmation of their RSVP in this case as well unless the following snippet is used:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'tribe_ticket_email_recipient', 'et_dont_notify_rsvp_recipient_on_manual_addition', 10, 4 );\n\nfunction et_dont_notify_rsvp_recipient_on_manual_addition( $to, $post_id, $order_id, $tickets ) {\n   if ( 'rsvp' == $tickets&#x5B;0]&#x5B;'provider_slug'] ) {\n      return;\n   }\n   return $to;\n}\n<\/pre><\/div>\n\n\n<p>If you create hidden events and want to suppress the confirmation email only on events that are marked as &#8220;Hidden from Upcoming&#8221; when adding attendees, you can use the following code snippet.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( &#039;tec_tickets_emails_dispatcher_to&#039;, function ( $to, $mail ) {\nif ( is_admin() &amp;&amp; tribe_is_truthy( get_post_meta( $mail-&gt;get_email()-&gt;get( &#039;post_id&#039; ), &#039;_EventHideFromUpcoming&#039;, true ) ) ) {\nreturn null;\n}\n\nreturn $to;\n}, 10, 2 );\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\u2728 This article covers how to disable the RSVP email for legacy emails. Since Event Tickets 5.6.0, you can do this via settings. Learn more. When folks RSVP to events on your site, they receive an email confirmation of their RSVP. This is not quite a &#8220;ticket&#8221; in the traditional sense, and so we are&#8230;<\/p>\n","protected":false},"author":17,"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],"stellar-product-taxonomy":[155],"class_list":["post-1896608","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-snippets","tag-customizations","stellar-product-taxonomy-event-tickets"],"acf":[],"taxonomy_info":{"category":[{"value":79,"label":"Snippets"}],"post_tag":[{"value":25,"label":"Customizations"}],"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":"Andras Guseo","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/andras\/"},"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"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896608","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\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1896608"}],"version-history":[{"count":3,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896608\/revisions"}],"predecessor-version":[{"id":1958705,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896608\/revisions\/1958705"}],"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=1896608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1896608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1896608"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1896608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}