Stop Ticket Email from Sending EDD

Home Forums Ticket Products Event Tickets Plus Stop Ticket Email from Sending EDD

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #991901
    Ryan
    Participant

    Hey Guys,

    We would like to disable the automated ticket email from sending after a purchase. We are using EDD. Using the information in this thread:

    Disabling ticket email to purchaser

    I was able to remove the text regarding tickets being sent in another email. But the remove_action to stop the ticket email from sending doesn’t work. Is there an updated version that can accomplish this?

    Thanks!

    Matt

    #992089
    Nico
    Member

    Hi Matt,

    Thanks for reaching out to us! Glad to help you out on this one also 🙂

    Please try this updated version, the class name used there has changed:

    remove_action( 'eddtickets-send-tickets-email', array( 'Tribe__Events__Tickets__EDD__Email', 'trigger' ) );

    Please let me know if it works as expected,
    Best,
    Nico

    #992108
    Ryan
    Participant

    Hey Nico,

    I actually have already tried that as well – I went in to the EDD add-on and saw there was a new class so I gave that a shot and it is still firing off the ticket email.

    Just to be safe I copy/pasted your code into my function.php, emptied my cache and tested again and I still received the ticket and purchase receipt.

    Any other thoughts?

    If you’d like access to the site to test as well as a coupon code to make some dummy purchases I’m happy to provide it.

    Thanks,

    Matt

    #992923
    Nico
    Member

    Hey Matt,

    Thanks for the follow-up! Sorry for the delay on this. I must say I did the same but didn’t test it locally – shame on me!

    Can you try this updated snippet? I’ve tested it this time and it works form me. Remove the other one and add this one to functions.php and give it a try:


    add_filter( 'edd_email_ticket_receipt', '__return_false' );

    Please let me know about it,
    Best,
    Nico

    #992928
    Ryan
    Participant

    Once again – you are the man. That did the trick. Thanks for the help Nico! We’re close to launch and wouldn’t be there without the great support!

    Matt

    #992930
    Nico
    Member

    Hey Matt,

    Thanks a lot for your kind words 🙂 Really glad to help you out!

    I’ll be closing this thread but be sure to open a new one if anything comes up!

    Best of luck with the project launch,
    Nico

    #992931
    Nico
    Member

    This reply is private.

    #992997
    Ryan
    Participant

    This reply is private.

    #993027
    Nico
    Member

    This reply is private.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Stop Ticket Email from Sending EDD’ is closed to new replies.