Missing $payment_data in the “edd_purchase_subject” filter

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer