wpsc_purchase_log_admin_notification_raw_message

Located in: purchase-log-notification.class.php

Functions that call this hook: WPSC_Purchase_Log_Admin_Notification::get_raw_message()

Arguments Accepted: $raw_message, $this

Version Introduced: 3.8.9

Description: Filter the admin purchase notification’s raw message (admin report) before placeholders are replaced by real values.

Code in context:

[php highlight=”384″ firstline=”398″]

// Checkout fields

$message .= "rn";

foreach ( $data as $section ) {

if ( empty( $section[‘fields’] ) )

continue;

$message .= "<strong>{$section[‘title’]}</strong>rn";

foreach ( $section[‘fields’] as $field ) {

$message .= $field->name . ‘ : ‘ . $field->value . "rn";

}

$message .= "rn";

}

// preserve pre-3.8.9 hooks

$message = apply_filters( ‘wpsc_transaction_result_report’, $message );

return apply_filters( ‘wpsc_purchase_log_admin_notification_raw_message’, $message, $this );

[/php]