Last active
February 22, 2018 20:30
-
-
Save New0/9153a4393c25630f67322b350e2cacbb to your computer and use it in GitHub Desktop.
Set the Reply to email addresses to match all tge recipients email addresses (will take recipients of conditional recipients processor)
This file contains hidden or 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_mailer', function( $mail, $data, $form ) { | |
//MAKE SURE TO CHANGE FORM ID | |
if( "CF5a5e8452c6f82" == $form[ 'ID' ] ) { | |
//If Pro NOT activated | |
$mail[ 'replyto' ] = $mail[ 'recipients' ]; | |
//IF Pro Activated | |
//$mail[ 'from' ] = $mail[ 'recipients' ]; | |
} | |
return $mail; | |
}, 50, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment