shopp_email_receipt_data

filters order receipt data used for email notification.

add_filter( 'shopp_email_receipt_data', [callback] )

@param array $email order receipt data used for email notification.

Description

filters order receipt data used for email notification.

The order receipt data array includes keys ‘from’ (address), ‘to’ (address), ‘subject’, ‘receipt’ (order receipt contents), ‘url’ (your site url), sitename (your site name), and the ‘orderid’.

Example

// register filter callback
add_filter('shopp_email_receipt_data', 'shopp_email_receipt_data_filter');

// create filter function
function shopp_email_receipt_data_filter( $email ) {
    // add a recipient
    $email['to'] = $email['to'].',email@domain.org';
    return $email;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar