Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Created January 19, 2017 16:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/352e9b5c0a8f88a1aea3b22b4c0accc6 to your computer and use it in GitHub Desktop.
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/
<?php
add_filter( 'caldera_forms_submit_redirect', function( $url ){
//remove cf_id query arg
$url = remove_query_arg( 'cf_id', $url );
return $url;
});
@ESPONI
Copy link

ESPONI commented Mar 17, 2017

used for?
is not necessary 'cf_id' in the redirect?

@Aetles
Copy link

Aetles commented Feb 14, 2018

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