Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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