Custom “reply to” email header in Woocommerce New Order email notification
问题 I'm looking to filter the email headers of the new order form in woocommerce. I'm trying to replace the customer email address with the main site admin email address. We need to do this because Gmail is flagging new orders as spam because the from address is not the same as the reply to address. The function below works partially: add_filter( 'woocommerce_email_headers', 'woo_add_reply_to_wc_admin_new_order', 10, 3 ); function woo_add_reply_to_wc_admin_new_order( $headers = '', $id = '',