Created
August 22, 2017 07:52
-
-
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.
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('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