quform_confirmation_message

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);
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);

Parameters

  • $messagestring – the current confirmation message
  • $confirmationQuform_Confirmation – the confirmation instance
  • $formQuform_Form – the form instance

Accessing form data

See Getting form values

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

  • $messagestring – the current confirmation message
  • $confirmationQuform_Confirmation – the confirmation instance
  • $formQuform_Form – the form instance

Accessing form data

See Getting form values

Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy