{"id":1957584,"date":"2023-01-17T13:39:35","date_gmt":"2023-01-17T18:39:35","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?post_type=post&#038;p=1954809"},"modified":"2024-05-29T13:04:58","modified_gmt":"2024-05-29T17:04:58","slug":"disable-email-when-moving-an-attendee-or-ticket","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/disable-email-when-moving-an-attendee-or-ticket\/","title":{"rendered":"Disable Email When Moving an Attendee or Ticket"},"content":{"rendered":"\n<p>With Event Tickets and Event Tickets Plus, you have the ability to move tickets (RSVPs and e-commerce tickets) to other events and to move attendees to other tickets. You can read more about this in the <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/moving-tickets\/\" target=\"_blank\" rel=\"noreferrer noopener\">Moving Tickets<\/a> article. <\/p>\n\n\n\n<p>By default, when a ticket or attendee is moved a notification email is automatically sent to the attendee(s) to alert them that a change has been made to their ticket. To disable these notification emails, just add the code snippet below using a <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Code Snippets plugin<\/a> or add the code to your theme&#8217;s <code>functions.php<\/code> file.<\/p>\n\n\n\n<p><strong>To disable the email when moving a ticket:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; quick-code: false; notranslate\" title=\"\">\nadd_filter( &#039;tribe_tickets_ticket_type_moved_email_recipient&#039;, &#039;disable_email_when_moving_ticket&#039; );\n\nfunction disable_email_when_moving_ticket( $email_addr ) {\n\tif ( $_POST&#x5B;&#039;action&#039;] == &#039;move_ticket_type&#039; ) {\n\t\treturn &quot;invalid@email.com&quot;;  \/\/ Or empty string\n\t}\n\n\treturn $email_addr;\n}\n<\/pre><\/div>\n\n\n<p><strong>To disable the email when moving an attendee: <\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; quick-code: false; notranslate\" title=\"\">\nadd_filter( &#039;tribe_tickets_ticket_moved_email_recipient&#039;, &#039;__return_null&#039; );\n<\/pre><\/div>\n\n\n<p>These snippets will remove the recipient&#8217;s email address and the email will not be sent.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Event Tickets and Event Tickets Plus, you have the ability to move tickets (RSVPs and e-commerce tickets) to other events and to move attendees to other tickets. You can read more about this in the Moving Tickets article. By default, when a ticket or attendee is moved a notification email is automatically sent to&#8230;<\/p>\n","protected":false},"author":3,"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":[24,59,79,88],"tags":[20,25,28,58],"stellar-product-taxonomy":[155,156],"class_list":["post-1957584","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizing","category-customizing-resources","category-snippets","category-tickets","tag-code","tag-customizations","tag-email","tag-php","stellar-product-taxonomy-event-tickets","stellar-product-taxonomy-event-tickets-plus"],"acf":[],"taxonomy_info":{"category":[{"value":24,"label":"Customizations"},{"value":59,"label":"PHP &amp; Functions"},{"value":79,"label":"Snippets"},{"value":88,"label":"Ticketing"}],"post_tag":[{"value":20,"label":"Code"},{"value":25,"label":"Customizations"},{"value":28,"label":"Email"},{"value":58,"label":"PHP"}],"stellar-product-taxonomy":[{"value":155,"label":"Event Tickets"},{"value":156,"label":"Event Tickets Plus"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Jaime Marchwinski","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/jaimetri-be\/"},"comment_info":0,"category_info":[{"term_id":24,"name":"Customizations","slug":"customizing","term_group":0,"term_taxonomy_id":24,"taxonomy":"category","description":"","parent":0,"count":110,"filter":"raw","term_order":"0","cat_ID":24,"category_count":110,"category_description":"","cat_name":"Customizations","category_nicename":"customizing","category_parent":0},{"term_id":59,"name":"PHP &amp; Functions","slug":"customizing-resources","term_group":0,"term_taxonomy_id":59,"taxonomy":"category","description":"","parent":24,"count":101,"filter":"raw","term_order":"0","cat_ID":59,"category_count":101,"category_description":"","cat_name":"PHP &amp; Functions","category_nicename":"customizing-resources","category_parent":24},{"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},{"term_id":88,"name":"Ticketing","slug":"tickets","term_group":0,"term_taxonomy_id":88,"taxonomy":"category","description":"","parent":61,"count":83,"filter":"raw","term_order":"0","cat_ID":88,"category_count":83,"category_description":"","cat_name":"Ticketing","category_nicename":"tickets","category_parent":61}],"tag_info":[{"term_id":20,"name":"Code","slug":"code","term_group":0,"term_taxonomy_id":20,"taxonomy":"post_tag","description":"","parent":0,"count":33,"filter":"raw","term_order":"0"},{"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":28,"name":"Email","slug":"email","term_group":0,"term_taxonomy_id":28,"taxonomy":"post_tag","description":"","parent":0,"count":20,"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"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1957584","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1957584"}],"version-history":[{"count":2,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1957584\/revisions"}],"predecessor-version":[{"id":1960499,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1957584\/revisions\/1960499"}],"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=1957584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1957584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1957584"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1957584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}