Help Desk

Disable ticket email (using Easy Digital Downloads)

  • Posts: 1 Topics: 1
    | Permalink

    Hello,

    I am looking for an easy way to disable the ticket email. We are using Event Tickets Plus with Easy Digital Downloads.

    Thank you,

    John

    Posts: 17533 Topics: 14 Answers: 973
    | Permalink

    Hi John,

    A small snippet like the following one should do the trick:

    add_filter( 'edd_email_ticket_receipt', '__return_false' );

    This could be added either to a custom plugin (preferred) or else to your theme’s functions.php file.

    Does that work for you?

    Posts: 1 Topics: 1
    | Permalink

    I added the text to the site’s functions.php file, but received the error “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”

    I don’t really know where to start with writing a plugin. Any help would be appreciated.

    Posts: 17533 Topics: 14 Answers: 973
    | Permalink

    Hi @artstream8401,

    If you have direct access via FTP or if your web hosting control panel offers some kind of file manager, perhaps you could create a new directory at wp-content/mu-plugins and then create a file called event-tickets-plus-customizations.php within that.

    In that file, start with an opening PHP tag <?php on the first line then follow with the line of code I shared above on the next line, ie:

    <?php
    add_filter( 'edd_email_ticket_receipt', '__return_false' );

    Does that work for you?

You must be logged in and hold an active support license to create new topics in the help desk. Please visit our products store to purchase a license.

Subscribe to Updates