Skip to content

Instantly share code, notes, and snippets.

@techjewel
Created September 23, 2021 09:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techjewel/4a522dbfc6cc595730ed7f999515f7b6 to your computer and use it in GitHub Desktop.
Save techjewel/4a522dbfc6cc595730ed7f999515f7b6 to your computer and use it in GitHub Desktop.
<?php
/*
* If you want to return raw provided url without any sanitization and security check then you can use this snippet.
*/
add_filter('fluentform_submission_confirmation', function ($returnData, $form, $confirmation) {
if(empty($returnData['redirectUrl'])) {
return $returnData;
}
if(empty($confirmation['customUrl'])) {
return $returnData;
}
$returnData['redirectUrl'] = $confirmation['customUrl'];
}, 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment