I use this code but it show error, can any one check it what is wrong
add_filter('woom_additional_template_params', 'function_name', 10, 2);
function function_name($parameters, $order)
{
$custom_params = array(
"order_total" => '',
);
if ($order !== null) {
$custom_params = array(
"order_total" => $order->get_total()
);
}
$parameters = array_merge($parameters, $custom_params);
return $parameters;
}