Skip to content

Instantly share code, notes, and snippets.

@corsonr
Last active February 4, 2019 21:48
Show Gist options
  • Save corsonr/dda9837af3523d10a83c610476b46a93 to your computer and use it in GitHub Desktop.
Save corsonr/dda9837af3523d10a83c610476b46a93 to your computer and use it in GitHub Desktop.
WooCommerce custom emails header
<?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