Last active
July 12, 2018 14:58
-
-
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/
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_submission_url', function( $url, $form_id ){ | |
if( 'CF582e6cf914f03' == $form_id ){ | |
$url = 'https://somesite.com/api'; | |
} | |
return $url; | |
}, 25, 2 ); |
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_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