Следующее изменит адрес электронной почты (и имя) «Ответить на» во всех почтовых уведомлениях:
add_filter( 'woocommerce_email_headers', 'change_reply_to_email_address', 10, 3 );
function change_reply_to_email_address( $header, $email_id, $order ) {
// HERE below set the name and the email address
$reply_to_name = 'Jack Smith';
$reply_to_email = 'jack.smith@doamin.tld';
// Get the WC_Email instance Object
$email = new WC_Email($email_id);
$header = "Content-Type: " . $email->get_content_type() . "\r\n";
$header .= 'Reply-to: ' . $reply_to_name . ' <' . $reply_to_email . ">\r\n";
return $header;
}
Этот код помещается в файл function.php вашей активной дочерней темы (или темы). Проверено и работает.
Похожие: Пользовательский заголовок "ответить на" в Woocommerce уведомлении о новом заказе