You appear to be a bot. Output may be restricted
Description
Email Template Body
Usage
$string = edd_get_email_body_content( $payment_id, $payment_data );
Parameters
- $payment_id
- ( int ) optional – Payment ID
- $payment_data
- ( array ) optional – Payment Data
Returns
string $email_body Body of the email
Source
File name: easy-digital-downloads/includes/emails/template.php
Lines:
1 to 15 of 15
function edd_get_email_body_content( $payment_id = 0, $payment_data = array() ) { $default_email_body = __( "Dear", "easy-digital-downloads" ) . " {name},\n\n"; $default_email_body .= __( "Thank you for your purchase. Please click on the link(s) below to download your files.", "easy-digital-downloads" ) . "\n\n"; $default_email_body .= "{download_list}\n\n"; $default_email_body .= "{sitename}"; $email = edd_get_option( 'purchase_receipt', false ); $email = $email ? stripslashes( $email ) : $default_email_body; $email_body = apply_filters( 'edd_email_template_wpautop', true ) ? wpautop( $email ) : $email; $email_body = apply_filters( 'edd_purchase_receipt_' . EDD()->emails->get_template(), $email_body, $payment_id, $payment_data ); return apply_filters( 'edd_purchase_receipt', $email_body, $payment_id, $payment_data ); }