Dieser Filter kann verwendet werden, um die Kaufbeleg-E-Mail zu ändern, die nach dem Kauf von Downloads an die Benutzer gesendet wird.
Der Filter akzeptiert drei Parameter:
- $message – ein HTML-String mit dem Inhalt der E-Mail
- $payment_id – die numerische ID des Kaufs
- $payment_data – ein Array der Zahlungsmetadaten
Ein Beispiel, wie Sie zusätzliche Informationen zum Kaufbeleg hinzufügen können, finden Sie unten:
function add_to_purchase_receipt($message, $payment_id, $purchase_data) {
// add custom text to the end of the receipt
$message .= "nnThis is custom text added to the end of the purchase receipt";
return $message;
}
add_filter('edd_purchase_receipt', 'add_to_purchase_receipt', 10, 3);
