Skip to content

Instantly share code, notes, and snippets.

@kreamweb
Created August 22, 2017 07:52
Show Gist options
  • Save kreamweb/94be962f59646666a22c577c329c01ce to your computer and use it in GitHub Desktop.
Save kreamweb/94be962f59646666a22c577c329c01ce to your computer and use it in GitHub Desktop.
Change From email and From name in the email Send request a quote, with the email and name of customer.
<?php
add_filter('ywraq_request_a_quote_send_email_from_address','ywraq_request_a_quote_send_email_from_address', 10, 2);
function ywraq_request_a_quote_send_email_from_address( $email, $object ){
$email = $object->raq['user_email'];
return $email;
}
add_filter('ywraq_request_a_quote_send_email_from_name','ywraq_request_a_quote_send_email_from_name', 10, 2);
function ywraq_request_a_quote_send_email_from_name( $email, $object ){
$email = $object->raq['user_name'];
return $email;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment