The “ims_customer_message” filter is used to modify the HTML email sent to the customer after each transaction. The message can also be modify under settings > checkout > Purchase Receipt.

A plugin (or theme) can modify the value with the code:

<?php add_filter( 'ims_customer_message', 'filter_function_name'); ?>

The hook is located in the image-store/_inc/cart.php file.


// Apply filter
function modify_ims_customer_message( $message, $email_tags, $substitutions ) {
	return $message . "<p>additional text</p>"; 
add_filter('ims_customer_message', 'modify_ims_customer_message');

Note:  $message is an HTML string, $email_tags is a numeric array, $substitutions is an numeric array.

Leave a Reply

Your email address will not be published. Required fields are marked *