Created
January 19, 2017 16:43
-
-
Save Shelob9/352e9b5c0a8f88a1aea3b22b4c0accc6 to your computer and use it in GitHub Desktop.
Examples of changing the Caldera Forms redirect URL using caldera_forms_submit_redirect SEE: https://calderaforms.com/doc/caldera_forms_submit_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
<?php | |
add_filter( 'caldera_forms_submit_redirect', function( $url ){ | |
//remove cf_id query arg | |
$url = remove_query_arg( 'cf_id', $url ); | |
return $url; | |
}); |
No it's not necessary. Lets say you have a external redirect url like http://www.example.com/?item=x&cf_id=1
where x
s the only information you want to submit you really don't need the &cf_id=1
part at all.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
used for?
is not necessary 'cf_id' in the redirect?