Last active
February 4, 2019 21:48
-
-
Save corsonr/dda9837af3523d10a83c610476b46a93 to your computer and use it in GitHub Desktop.
WooCommerce custom emails header
This file contains 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 // Do not include this if already open! Code goes in theme functions.php. | |
add_filter( 'woocommerce_email_headers', 'woo_update_emails_header', 10, 2); | |
function woo_update_emails_header( $headers, $object ) { | |
$headers = array(); | |
$headers[] = 'Content-Type: text/html; charset=UTF-8'; // update the encoding/charset here | |
return $headers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment