<html lang="es-es" dir="ltr"><head></head><body>### [wpforms_process_before_form_data](https://wpforms.com/developers/wpforms_process_before_form_data/)

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

**Content:**

## Description

The `wpforms_process_before_form_data` filter lets you modify form data during processing, before WPForms continues saving or validating the submission. This can be used to adjust settings, add dynamic values, or modify payment descriptions.

This filter runs early in the form process, right after WPForms decodes the form content. Developers can use it to customize form behavior, update payment data, or add context-specific values.

parametertypedescription`$form_data`arrayForm ID`$entry`arrayThe raw entry data submitted.## Source

`wpforms\includes\class-process.php`

## Example

```

// Append the current page title to the Stripe payment description.
function wpf_dev_process_form_data( $form_data, $entry ) {
    if ( isset( $form_data['payments']['stripe']['payment_description'] ) ) {
        $form_data['payments']['stripe']['payment_description'] .= ' - ' . get_the_title();
    }
    return $form_data;
}
add_filter( 'wpforms_process_before_form_data', 'wpf_dev_process_form_data', 10, 2 );
```

## Reference Article

- [Dynamically Setting Stripe Payment Description in WPForms](https://wpforms.com/developers/dynamically-setting-stripe-payment-description-in-wpforms/)

**Categories:** Filters Hooks

---

</body></html>