wpsc_email_product_list_plaintext_custom_message

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

Functions that call this hook: create_plaintext_product_list()

Arguments Accepted: __( 'Customization for %s', 'wpsc' )

Version Introduced: 3.8.9

Description: Filter the custom message heading in plain text purchase notification.

Code in context:

[php highlight=”127″ firstline=”123″]

foreach ( $this->purchase_log->get_cart_contents() as $cart_item ) {

if ( empty( $cart_item->custom_message ) )

continue;

$custom_message_string = apply_filters( ‘wpsc_email_product_list_plaintext_custom_message’, __( ‘Customization for %s’, ‘wpsc’ ) );

$output .= "rn" . ‘=== ‘ . sprintf( $custom_message_string, $cart_item->name ) . ‘ ===’ . "rn";

$output .= $cart_item->custom_message;

$output .= "rn";

}

[/php]