quform_confirmation_redirect_url

This hook can be used to alter the confirmation redirect URL.

quform_confirmation_redirect_url_X_X

This hook is run for a single confirmation.

Example

12
3
4
5
add_filter('quform_confirmation_redirect_url_1_1', function ($url, Quform_Confirmation $confirmation, Quform_Form $form) {    $url = 'https://www.example.com';
 
    return $url;
}, 10, 3);
add_filter('quform_confirmation_redirect_url_1_1', function ($url, Quform_Confirmation $confirmation, Quform_Form $form) {
    $url = 'https://www.example.com';

    return $url;
}, 10, 3);
1
2
3
4
5
6
7
function my_confirmation_redirect_url($url, Quform_Confirmation $confirmation, Quform_Form $form)
{
    $url = 'https://www.example.com';
 
    return $url;
}
add_filter('quform_confirmation_redirect_url_1_1', 'my_confirmation_redirect_url', 10, 3);
function my_confirmation_redirect_url($url, Quform_Confirmation $confirmation, Quform_Form $form)
{
    $url = 'https://www.example.com';

    return $url;
}
add_filter('quform_confirmation_redirect_url_1_1', 'my_confirmation_redirect_url', 10, 3);

Parameters

  • $urlstring – the current confirmation redirect URL
  • $confirmationQuform_Confirmation – the confirmation instance
  • $formQuform_Form – the form instance

Accessing form data

See Getting form values

quform_confirmation_redirect_url

This hook is run for all confirmations.

Example

1
2
3
4
5
add_filter('quform_confirmation_redirect_url', function ($url, Quform_Confirmation $confirmation, Quform_Form $form) {
    $url = 'https://www.example.com';
 
    return $url;
}, 10, 3);
add_filter('quform_confirmation_redirect_url', function ($url, Quform_Confirmation $confirmation, Quform_Form $form) {
    $url = 'https://www.example.com';

    return $url;
}, 10, 3);
1
2
3
4
5
6
7
function my_confirmation_redirect_url($url, Quform_Confirmation $confirmation, Quform_Form $form)
{
    $url = 'https://www.example.com';
 
    return $url;
}
add_filter('quform_confirmation_redirect_url', 'my_confirmation_redirect_url', 10, 3);
function my_confirmation_redirect_url($url, Quform_Confirmation $confirmation, Quform_Form $form)
{
    $url = 'https://www.example.com';

    return $url;
}
add_filter('quform_confirmation_redirect_url', 'my_confirmation_redirect_url', 10, 3);

Parameters

  • $urlstring – the current confirmation redirect URL
  • $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