Last active
November 5, 2022 21:08
-
-
Save alex-authlab/5f2cc0305f645f09783f6f6e7b6de298 to your computer and use it in GitHub Desktop.
Fluent Form custom redirect filter
This file contains hidden or 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
| add_filter('fluentform_submission_confirmation', function($returnData, $form, $confirmation ) | |
| { | |
| if($form->id != 11){ | |
| return; | |
| } | |
| $returnData['redirectUrl'] = 'http://google.com'; | |
| $returnData['message'] = "Redirecting"; | |
| return $returnData ; | |
| }, 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment