Skip to content

Instantly share code, notes, and snippets.

@elimn
Created November 16, 2016 20:51
Show Gist options
  • Select an option

  • Save elimn/6bde40a8b14444bb76700d9f225f9ccf to your computer and use it in GitHub Desktop.

Select an option

Save elimn/6bde40a8b14444bb76700d9f225f9ccf to your computer and use it in GitHub Desktop.
MT | ET | Prevent ticket moved emails from reaching the customer
<?php
/**
* Returns a black hole email address
*
* @see https://en.wikipedia.org/wiki/Black_hole_(networking)#Black_hole_e-mail_addresses
*
* @return string
*/
function tribe_return_blackhole_email() {
// Preferably this will be changed to a black hole email on your own email server,
// as this will save your email servers and the rest of the internets some
// unnecessary work.
return '[email protected]';
}
// These filters will prevent ticket moved emails from reaching the customer.
add_filter( 'tribe_tickets_ticket_type_moved_email_recipient', 'tribe_return_blackhole_email' );
add_filter( 'tribe_tickets_ticket_moved_email_recipient', 'tribe_return_blackhole_email' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment