ims_admin_message

Description

The “ims_admin_message” filter is used to modify the HTML email sent to the administrator after each transaction. The message can also be modify under settings > checkout > Order notification message.

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

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

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

Example

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

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


Comments

Leave a Reply

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