Skip to content

Instantly share code, notes, and snippets.

View jvdhelder's full-sized avatar

Jonathan jvdhelder

View GitHub Profile
@hostz-frank
hostz-frank / functions.php
Last active February 21, 2025 21:41
Send mail copy to users of Divi's contact form.
<?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 );
}
@hostz-frank
hostz-frank / functions.php
Created February 18, 2018 11:19
Copy to sender via Divi's contact form
<?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;
}