Created
November 16, 2016 20:51
-
-
Save elimn/6bde40a8b14444bb76700d9f225f9ccf to your computer and use it in GitHub Desktop.
MT | ET | Prevent ticket moved emails from reaching the customer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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