• Resolved silvadiego705

    (@silvadiego705)


    Hello,

    I want to modify the Purchase Receipt emails for some of my sales. The following filters are available, all placed within the edd_email_purchase_receipt() function in the includes/emails/functions.php file:

    edd_purchase_from_name
    edd_purchase_from_address
    edd_purchase_subject
    edd_purchase_heading
    edd_purchase_receipt

    All of the filters pass the $payment_id and the $payment_data arguments, except the edd_purchase_subject, which passes only the $payment_id argument. This is not a bug, but rather an inconsistency.

    Of course the $payment_data can be derived from the $payment_id with just two lines of code, so the missing $payment_data in the edd_purchase_subject filter is not hindering me in my customization efforts. I only wanted to report this inconsistency, as it might be of interest for you.

Viewing 1 replies (of 1 total)
  • Plugin Support Mihai Joldis

    (@misulicus)

    Hey @silvadiego705

    I will pass this to our development team for consideration. It is possible that it was not added as an argument for the Subject as it is not needed in the subject line.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Missing $payment_data in the “edd_purchase_subject” filter’ is closed to new replies.