Skip to content

Instantly share code, notes, and snippets.

@rafaehlers
Last active April 14, 2020 06:51
Show Gist options
  • Save rafaehlers/9e57eaf90dbeb3ca2172dfa05944297a to your computer and use it in GitHub Desktop.
Save rafaehlers/9e57eaf90dbeb3ca2172dfa05944297a to your computer and use it in GitHub Desktop.
Modify the FROM address from entry notes
<?php // DO NOT COPY THIS LINE
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'] = '[email protected]';
$email_settings['from_name'] = 'GravityView Website';
/*
$email_settings['to'] = $to; //[email protected]
$email_settings['bcc'] $bcc; //[email protected]
$email_settings['reply_to'] = $reply_to; //[email protected]
*/
return $email_settings;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment