Updated 14 September 2026
On this page
Description
Replaces the HTML of one part of the {live_summary} merge tag output. Replace {type} in the hook name with the part: table-title, table-row, table-row-section, table-row-message, ul-title, ul-item, ul-section, ul-message, choice-list-element, choice-list-item, order-summary-head, order-summary-item, order-summary-option or order-ecom-line. Keep the placeholders such as {label}, {value}, {qty}, {unit} and {price} in your template.
Parameters
$template | String. The HTML of the part with its placeholders
$form_id | Int
Return
String
Usage
Copy the below code to the functions.php of your child theme or to your snippet plugin.
<?php
// Add a class to every row of the merge tag table.
add_filter( "gotrls_mergetag_template_part_table-row", function( $template, $form_id ) {
return '<tr class="my-row"><td>{label}</td><td>{value}</td></tr>';
}, 10, 2 );
Since
version 2.0.0
Didn’t find what you were looking for?
Or contact support and I will help you out.
