wpsc_transaction_send_email_to_customer

Located in: purchase-log.helpers.php

Functions that call this hook: wpsc_send_customer_email()

Arguments Accepted: $purchase_notification_object, $is_email_sent

Version Introduced: 3.8.9

Description: This action is triggered after a purchase receipt has been emailed to the customer.

Code in context:

[php firstline=”205″ highlight=”215″]

function wpsc_send_customer_email( $purchase_log ) {

if ( ! is_object( $purchase_log ) )

$purchase_log = new WPSC_Purchase_Log( $purchase_log );

if ( ! $purchase_log->is_transaction_completed() && ! $purchase_log->is_order_received() )

return;

$email = new WPSC_Purchase_Log_Customer_Notification( $purchase_log );

$email_sent = $email->send();

do_action( ‘wpsc_transaction_send_email_to_customer’, $email, $email_sent );

return $email_sent;

}

[/php]