Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // http://www.gravityhelp.com/forums/topic/email-no-duplicates#post-108422
- // this will apply to any duplicates on form 21
- add_filter('gform_duplicate_message_21', 'redirect_browser', 10, 2);
- function redirect_browser($message, $form) {
- header("Location: http://www.example.com/", TRUE, 302);
- header("Location: http://www.example.com/");
- exit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement