Support » Plugin: Event Tickets and Registration » Using tribe_tpp_email_subject filter suppresses confirmation email

  • Resolved rob66bnu

    (@rob66bnu)


    I having been using the tribe_rsvp_email_subject filter to alter the subject of RSVP confirmation emails. However, when I try to add the tribe_tpp_email_subject filter for tickets purchased with PayPal, the system stops sending confirmation messages for purchases even though the ticket purchase is recorded correctly in WordPress and on PayPal and no error message is displayed.

    The issue persists even after I reduce my code the the following:
    add_filter( ‘tribe_tpp_email_subject’, ‘my_tpp_email_subject’, 10, 3 );
    function my_tpp_email_subject ( $text, $post_id, $order_id ) {

    return $text ;
    }

    Removing that code results in resumption of confirmation messages.

    I’m using The Events Calendar 5.1.4 with upgraded views, Event Tickets 4.12.2 and WordPress 5.5.1.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sky Shabatura

    (@skyshab)

    Hi there,

    I have found and logged an issue with this filter. Until we can correct the issue, you can fix this by directly editing the source file.

    To fix things, replace line 1165 in the following file: event-tickets/src/Tribe/Commerce/PayPal/Main.php

    with this line of code:

    $subject = apply_filters( ‘tribe_tpp_email_subject’, tribe_get_option( ‘ticket-paypal-confirmation-email-subject’, $default_subject ), $post_id, $order_id );

    This should allow you to use the filter with all three parameters.

    Thanks for bring this to our attention.

    Best,
    Sky

    Thread Starter rob66bnu

    (@rob66bnu)

    Thanks, Sky. The suggested interim fix works for me and I appreciate your prompt support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using tribe_tpp_email_subject filter suppresses confirmation email’ is closed to new replies.