Skip to content

Instantly share code, notes, and snippets.

@alex-authlab
Last active September 10, 2020 06:14
Show Gist options
  • Save alex-authlab/70e63ae95c4b0996be1387ed7bcfa3c0 to your computer and use it in GitHub Desktop.
Save alex-authlab/70e63ae95c4b0996be1387ed7bcfa3c0 to your computer and use it in GitHub Desktop.
Fluent Form Dynamic Redirect
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