This hook can be used to alter the confirmation message.
quform_confirmation_message_X_X
This hook is run for a single confirmation.
Example
12
3
4
5
| add_filter('quform_confirmation_message_1_1', function ($message, Quform_Confirmation $confirmation, Quform_Form $form) { $message .= '<br>This is extra content!'; return $message; }, 10, 3); |
add_filter('quform_confirmation_message_1_1', function ($message, Quform_Confirmation $confirmation, Quform_Form $form) { $message .= '<br>This is extra content!'; return $message; }, 10, 3);
- On line 1, replace the
1_1
with the confirmation unique ID
1
2
3
4
5
6
7 | function my_confirmation_message($message, Quform_Confirmation $confirmation, Quform_Form $form) { $message .= '<br>This is extra content!'; return $message; } add_filter('quform_confirmation_message_1_1', 'my_confirmation_message', 10, 3); |
function my_confirmation_message($message, Quform_Confirmation $confirmation, Quform_Form $form) { $message .= '<br>This is extra content!'; return $message; } add_filter('quform_confirmation_message_1_1', 'my_confirmation_message', 10, 3);
- On line 7, replace the
1_1
with the confirmation unique ID
Parameters
$message
–string
– the current confirmation message$confirmation
–Quform_Confirmation
– the confirmation instance$form
–Quform_Form
– the form instance
Accessing form data
quform_confirmation_message
This hook is run for all confirmations.
Example
1 2 3 4 5 | add_filter('quform_confirmation_message', function ($message, Quform_Confirmation $confirmation, Quform_Form $form) { $message .= '<br>This is extra content!'; return $message; }, 10, 3); |
add_filter('quform_confirmation_message', function ($message, Quform_Confirmation $confirmation, Quform_Form $form) { $message .= '<br>This is extra content!'; return $message; }, 10, 3);
1 2 3 4 5 6 7 | function my_confirmation_message($message, Quform_Confirmation $confirmation, Quform_Form $form) { $message .= '<br>This is extra content!'; return $message; } add_filter('quform_confirmation_message', 'my_confirmation_message', 10, 3); |
function my_confirmation_message($message, Quform_Confirmation $confirmation, Quform_Form $form) { $message .= '<br>This is extra content!'; return $message; } add_filter('quform_confirmation_message', 'my_confirmation_message', 10, 3);
Parameters
$message
–string
– the current confirmation message$confirmation
–Quform_Confirmation
– the confirmation instance$form
–Quform_Form
– the form instance