Created
September 23, 2021 09:54
-
-
Save techjewel/4a522dbfc6cc595730ed7f999515f7b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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