Last active
September 10, 2020 06:14
-
-
Save alex-authlab/70e63ae95c4b0996be1387ed7bcfa3c0 to your computer and use it in GitHub Desktop.
Fluent Form Dynamic Redirect
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
add_action('fluenform_before_submission_confirmation', function($entryId, $formData, $form) | |
{ | |
if($form->id != 11){ // change form ID | |
return; | |
} | |
$email = $formData['email']; // fetch all your data , appened to the URL using & sign | |
wp_send_json_success([ | |
'result' => [ | |
'redirectUrl' => 'https://google.com/?email='.$email, | |
'message' => 'How You Doing' | |
] | |
]); | |
}, 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment