Last active
November 15, 2017 17:47
-
-
Save Shelob9/2de7c1dcaa7a90ad6dd6b3867a23ef64 to your computer and use it in GitHub Desktop.
Example code for caldera_forms_pro_send_local filter See https://calderaforms.com/doc/caldera_forms_pro_send_local/
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 | |
/** | |
* Use local email system, instead of Caldera Forms pro, for all forms | |
* | |
*/ | |
add_filter( 'caldera_forms_pro_send_local', '__return_true' ); |
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 | |
/** | |
* Use local email system, instead of Caldera Forms pro, for a specific form | |
* | |
*/ | |
add_filter( 'caldera_forms_pro_send_local', function( $send, $form_id ){ | |
//IMPORTANT: Change your form ID here | |
if( 'cf124354' === $form_id ){ | |
return true; | |
} | |
return $send; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment