Last active
March 29, 2018 19:41
-
-
Save rafaehlers/fe5af21ddd9a7c2d00c8c71f8d721059 to your computer and use it in GitHub Desktop.
Modify an entry note email
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( '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; //[email protected] | |
$email_settings['to'] = $to; //[email protected] | |
$email_settings['bcc'] $bcc; //[email protected] | |
$email_settings['reply_to'] = $reply_to; //[email protected] | |
$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