Home › Forums › Ticket Products › Event Tickets Plus › Disable ticket emails
- This topic has 3 replies, 2 voices, and was last updated 7 years, 7 months ago by
Sky.
-
AuthorPosts
-
September 21, 2018 at 2:14 am #1627127
robcoers
ParticipantHi,
I found this thread:which is exactly what I need. I want to remove the “You’ll receive your tickets in another email.” and i copied the suggested code in my functions.php
I also disabled the email settings in the tickets plugin./* Disable tickets emails for Woo */
add_filter( ‘wootickets-tickets-email-enabled’, ‘__return_false’ );/* Remove the message ‘You’ll receive your tickets in another email’ from the Woo Order email */
add_filter( ‘wootickets_email_message’, ‘__return_empty_string’Since i think the closing tags were missing (?) i added them:
/* Disable tickets emails for Woo */
add_filter( ‘wootickets-tickets-email-enabled’, ‘__return_false’ );/* Remove the message ‘You’ll receive your tickets in another email’ from the Woo Order email */
add_filter( ‘wootickets_email_message’, ‘__return_empty_string’ );
}However, both resulted in a blank page upon loading a page in the front end.
Could you check?
Thanks,
RobSeptember 21, 2018 at 12:05 pm #1627844Sky
KeymasterHi Rob,
Thanks for reaching out. I will try to help you get this sorted.
It looks like part of the code I had provided got cut off. The editor here is not good at handling code.
I put the complete snippet up on github. It looks like you mostly got it, though I do see an extra “}” in what you pasted here.
Try copying the code from here: https://gist.github.com/skyshab/1f1c7ddd8fc842134faadb89c2f8ac94
Usually a blank screen on the front end is the result of a PHP error. I tried this code out to insure it’s not breaking anything.
Let me know if that works for you.
Thanks,
SkySeptember 22, 2018 at 2:09 am #1628133robcoers
ParticipantGreat Sky, that helped.
September 24, 2018 at 10:20 am #1629293Sky
KeymasterHi again,
Great! Glad I was able help with that.
Please let us know if you have any questions or issues in the future.
Thanks,
SkyOctober 16, 2018 at 9:35 am #1643824Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Disable ticket emails’ is closed to new replies.
