### [wpforms_forms_fields_payment_total_field_order_summary_preview_foot](https://wpforms.com/developers/wpforms_forms_fields_payment_total_field_order_summary_preview_foot/)

**Published:** September 30, 2025
**Author:** Umair Majeed

**Content:**

## Description

The `wpforms_forms_fields_payment_total_field_order_summary_preview_foot` filter lets you modify the items shown in the **Order Summary preview footer** before WPForms renders the total row. You can add, remove, or adjust lines such as fees or informational rows.

This filter runs during the **preview** build of the Order Summary and is useful for appending context rows or fixed charges.

parametertypedescription`$foot`arrayThe current list of footer rows. Each row is an associative array with keys like `label`, `quantity`, `amount`, and `class`.## Source

`wpforms\src\Forms\Fields\PaymentTotal\Field.php`

## Example

```

/**
 * Add a small service fee line to the Order Summary preview footer.
 */
function wpf_dev_order_summary_preview_foot( $foot ) {
    $foot[] = [
        'label'    => __( 'Service fee', 'text-domain' ),
        'quantity' => '',
        'amount'   => wpforms_format_amount( 5, true ), // Shows as currency
        'class'    => 'wpforms-order-summary-preview-fee',
    ];
    return $foot;
}
add_filter( 'wpforms_forms_fields_payment_total_field_order_summary_preview_foot', 'wpf_dev_order_summary_preview_foot' );

```

## Reference Article

- [How to Display Hidden Single Item Fields in Order Summary](https://wpforms.com/developers/how-to-display-hidden-single-item-fields-in-order-summary/)

**Categories:** Filters Hooks

---

