shopp_email_data

filters the email template substituted value.

add_filter( 'shopp_email_data', [callback] )

@param string $value the email template substituted value.
@param string $key the key of the substituted value.

Description

filters the email template substituted value.

This filter can be used to specify replacement content for the [from], [to], [subject], and [message] codes in the email templates.

Example

// register filter callback
add_filter('shopp_email_data', 'shopp_email_data_filter', 10, 2);

// create filter function
function shopp_email_data_filter( $value, $key ) {
    // substitute from field
    if ( 'from' == $key ) $value = 'myemail@domain.com';

    return $value;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar