Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Last active July 12, 2018 14:58
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/ea931b100a3d240448914fc7c6a6f45d to your computer and use it in GitHub Desktop.
Save Shelob9/ea931b100a3d240448914fc7c6a6f45d to your computer and use it in GitHub Desktop.
Examples of the caldera_forms_submission_url filter. See: https://calderaforms.com/doc/caldera_forms_submission_url/
<?php
add_filter( 'caldera_forms_submission_url', function( $url, $form_id ){
if( 'CF582e6cf914f03' == $form_id ){
$url = 'https://somesite.com/api';
}
return $url;
}, 25, 2 );
<?php
add_filter( 'caldera_forms_submission_url', function( $url, $form_id ){
if( 'CF582e6cf914f03' == $form_id ){
$url = set_url_scheme( $url, 'https' );
}
return $url;
}, 25, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment