Hello @rdcc34 ,
add_filter('woom_additional_template_params', 'function_name', 10, 2);
function function_name($parameters, $order)
{
$custom_params = array(
"param1" => '',
"param2" => ''
);
if ($order !== null) {
$custom_params = array(
"param1" => 'value1',
"param2" => 'value2'
);
}
$parameters = array_merge($parameters, $custom_params);
return $parameters;
}
The code mentioned above demonstrates how to provide customised parameters when selecting a template message on the WC Messaging template setting page. Once you’ve specified the parameters you require, you can select the template messages and matching parameters as needed.
For an example you can refer the blog post : https://sevengits.com/add-custom-parameters-on-wc-messaging-templates/
Thank you!