1. Home
  2. Filters
  3. Filter reference: wpforms_frontend_confirmation_message

apply_filters( 'wpforms_frontend_confirmation_message', wpautop( $message ), $form_data, $fields, $entry_id )

Filters confirmation message output site-wide.

Description

The wpforms_frontend_confirmation_message filter is applied to all forms set to display a confirmation message. It can be used to change or replace the confirmation message that’s displayed, overriding the message contents set within the form builder.

Parameters

$message
(string) (Required) Confirmation message, including processed Smart Tags.
$form_data
(array) (Required) Form data and settings.
$fields
(array) (Required) Sanitized field data.
$entry_id
(int) (Required) Entry id.

Source

wpforms/includes/class-frontend.php

More Information

Below is the code that creates the $message string used in this filter.

$message = apply_filters( 'wpforms_process_smart_tags', $this->confirmation_message, $form_data, $fields, $entry_id );
Updated on December 28, 2018

Was this article helpful?