Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Last active November 15, 2017 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/2de7c1dcaa7a90ad6dd6b3867a23ef64 to your computer and use it in GitHub Desktop.
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/
<?php
/**
* Use local email system, instead of Caldera Forms pro, for all forms
*
*/
add_filter( 'caldera_forms_pro_send_local', '__return_true' );
<?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