Created
February 18, 2018 11:19
-
-
Save hostz-frank/2391d6a8d5ffb6fb965a8446198b90a2 to your computer and use it in GitHub Desktop.
Copy to sender via Divi's contact form
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 | |
/** | |
* Copy lines below into functions.php of your Divi child theme. | |
*/ | |
add_filter( 'et_contact_page_headers', 'mycopytosender', 10, 4 ); | |
function mycopytosender( $headers, $contact_name, $contact_email ) { | |
$headers[] = "Cc: \"{$contact_name}\" <{$contact_email}>"; | |
return $headers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment