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 | |
/** | |
* Send copy to Divi's contact form sender. | |
*/ | |
add_filter( 'et_contact_page_headers', 'change_et_contact_page_headers', 10, 3 ); | |
function change_et_contact_page_headers( $headers, $contact_name, $contact_email ) { | |
$headers[] = 'Cc: ' . $contact_email; | |
return implode( "\n", $headers ); | |
} |