Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_filter( 'woocommerce_email_classes', 'mk_woocomerce_my_custom_email' );
function mk_woocomerce_my_custom_email( $email_classes ) {
// add the email class to the list of email classes that WooCommerce loads
$email_classes['Mk_Custom_Mail_Class'] = new Mk_Custom_Mail_Class();
return $email_classes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment