Skip to content

Instantly share code, notes, and snippets.

@rafaehlers
Last active March 29, 2018 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rafaehlers/fe5af21ddd9a7c2d00c8c71f8d721059 to your computer and use it in GitHub Desktop.
Save rafaehlers/fe5af21ddd9a7c2d00c8c71f8d721059 to your computer and use it in GitHub Desktop.
Modify an entry note email
<?php
add_filter( 'gravityview/field/notes/email_content', 'gv_modify_notes_email_content', 10, 4 );
function gv_modify_notes_email_content( $email_settings ) {
extract( $email_settings );
$email_settings['from'] = $from; //example@gmail.com
$email_settings['to'] = $to; //example@gmail.com
$email_settings['bcc'] $bcc; //example@gmail.com
$email_settings['reply_to'] = $reply_to; //example@gmail.com
$email_settings['subject'] = $subject; //subject of the email
$email_settings['message'] = $message; //body of the email (already in HTML format)
$email_settings['from_name'] = $from_name; //Example: GravityView Website
$email_settings['message_format'] = $message_format; //html
$email_settings['email_footer'] = $email_footer; //The text: This note was sent from {url}
return $email_settings;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment