shopp_merchant_new_customer_notification

Filters the new customer registration notification message sent to the merchant.

add_filter( 'shopp_merchant_new_customer_notification', [callback] )

@param array the lines of the email message to be sent
@return array the filtered email message lines

Description

Filters the headers and body content of the new customer email message sent to the merchant’s email address set in ShoppSetup under the Merchant Email setting.

Examples

// Register filter callback
add_filter('shopp_merchant_new_customer_notification', 'shopp_custom_customer_notification', 10, 1);

// Create a callback handler
function shopp_custom_customer_notification ( $message ) {

    // Alter lines of the message
    $message[0] = 'From: "Friendly Neighborhood Spiderman" <spidey@websligners.com>';
    return $message;

}
// register filter callback
add_filter('shopp_new_customer_notification', 'custom_registration_email', 10, 1);

// create filter function
function custom_registration_email ( $message ) {

    $message[4] = "Welcome to the Web Slingers, new recruit! Here is your new login information:";

    return $message;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar